package com.sina.weibo;

import android.content.Context;
import android.text.TextUtils;
import android.util.Xml;
import com.sina.weibo.models.Comment;
import com.sina.weibo.models.CommentMessage;
import com.sina.weibo.models.Fan;
import com.sina.weibo.models.FavHotWord;
import com.sina.weibo.models.MBlog;
import com.sina.weibo.models.Message;
import com.sina.weibo.models.UnreadNum;
import com.sina.weibo.models.User;
import com.sina.weibo.models.UserInfo;
import com.sina.weibo.models.UserRankItem;
import com.sina.weibo.models.UserStatus;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.StringReader;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import java.util.ArrayList;
import java.util.Date;
import java.util.LinkedList;
import java.util.List;
import org.apache.http.HttpEntity;
import org.apache.http.HttpHost;
import org.apache.http.HttpResponse;
import org.apache.http.StatusLine;
import org.apache.http.client.HttpClient;
import org.apache.http.client.entity.UrlEncodedFormEntity;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.client.methods.HttpUriRequest;
import org.apache.http.conn.ClientConnectionManager;
import org.apache.http.impl.client.DefaultHttpClient;
import org.apache.http.message.BasicNameValuePair;
import org.apache.http.params.HttpConnectionParamBean;
import org.apache.http.params.HttpParams;
import org.xmlpull.v1.XmlPullParser;
import org.xmlpull.v1.XmlPullParserException;

public final class RPCHelper
{
  private static String PARSE_ERROR;
  private static String UNKNOWN_ERROR;
  private static RPCHelper itself;
  private static byte[] sBuffer = new byte[512];
  private Context mContext;

  static
  {
    PARSE_ERROR = "Problem parsing API response";
    UNKNOWN_ERROR = "Unknown error";
  }

  private RPCHelper(Context paramContext)
  {
    this.mContext = paramContext;
  }

  private static String calculateS(String paramString)
  {
    String str = String.valueOf(paramString);
    char[] arrayOfChar = MD5.hexdigest(str + "WQnVIAWDBmR9XV86YNAO97P3Xgk21az9").toCharArray();
    StringBuffer localStringBuffer1 = new StringBuffer();
    char c1 = arrayOfChar[1];
    StringBuffer localStringBuffer2 = localStringBuffer1.append(c1);
    char c2 = arrayOfChar[5];
    StringBuffer localStringBuffer3 = localStringBuffer2.append(c2);
    char c3 = arrayOfChar[2];
    StringBuffer localStringBuffer4 = localStringBuffer3.append(c3);
    char c4 = arrayOfChar[10];
    StringBuffer localStringBuffer5 = localStringBuffer4.append(c4);
    char c5 = arrayOfChar[17];
    StringBuffer localStringBuffer6 = localStringBuffer5.append(c5);
    char c6 = arrayOfChar[9];
    StringBuffer localStringBuffer7 = localStringBuffer6.append(c6);
    char c7 = arrayOfChar[25];
    StringBuffer localStringBuffer8 = localStringBuffer7.append(c7);
    char c8 = arrayOfChar[27];
    return c8;
  }

  // ERROR //
  private String execute(HttpUriRequest paramHttpUriRequest)
    throws RPCHelper.HttpException
  {
    // Byte code:
    //   0: aload_0
    //   1: invokespecial 91	com/sina/weibo/RPCHelper:getHttpClient	()Lorg/apache/http/client/HttpClient;
    //   4: astore_2
    //   5: getstatic 96	com/sina/weibo/WeiboApplication:UA	Ljava/lang/String;
    //   8: ifnonnull +179 -> 187
    //   11: ldc 98
    //   13: astore_3
    //   14: aload_1
    //   15: astore 4
    //   17: ldc 100
    //   19: astore 5
    //   21: aload_3
    //   22: astore 6
    //   24: aload 4
    //   26: aload 5
    //   28: aload 6
    //   30: invokeinterface 106 3 0
    //   35: aload_1
    //   36: astore 7
    //   38: ldc 108
    //   40: astore 8
    //   42: ldc 110
    //   44: astore 9
    //   46: aload 7
    //   48: aload 8
    //   50: aload 9
    //   52: invokeinterface 106 3 0
    //   57: aload_2
    //   58: astore 10
    //   60: aload_1
    //   61: astore 11
    //   63: aload 10
    //   65: aload 11
    //   67: invokeinterface 115 2 0
    //   72: astore 12
    //   74: aload 12
    //   76: invokeinterface 121 1 0
    //   81: astore 13
    //   83: aload 13
    //   85: invokeinterface 127 1 0
    //   90: istore 14
    //   92: sipush 200
    //   95: istore 15
    //   97: iload 14
    //   99: iload 15
    //   101: if_icmpeq +93 -> 194
    //   104: iconst_1
    //   105: anewarray 4	java/lang/Object
    //   108: astore 16
    //   110: aload 13
    //   112: invokevirtual 128	java/lang/Object:toString	()Ljava/lang/String;
    //   115: astore 17
    //   117: aload 16
    //   119: iconst_0
    //   120: aload 17
    //   122: aastore
    //   123: ldc 130
    //   125: aload 16
    //   127: invokestatic 134	java/lang/String:format	(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
    //   130: astore 18
    //   132: new 9	com/sina/weibo/RPCHelper$HttpException
    //   135: dup
    //   136: aload 18
    //   138: invokespecial 135	com/sina/weibo/RPCHelper$HttpException:<init>	(Ljava/lang/String;)V
    //   141: athrow
    //   142: astore 19
    //   144: new 9	com/sina/weibo/RPCHelper$HttpException
    //   147: astore 20
    //   149: aload 20
    //   151: astore 21
    //   153: aload 19
    //   155: astore 22
    //   157: aload 21
    //   159: aload 22
    //   161: invokespecial 138	com/sina/weibo/RPCHelper$HttpException:<init>	(Ljava/lang/Throwable;)V
    //   164: aload 20
    //   166: athrow
    //   167: astore 23
    //   169: aload_2
    //   170: ifnull +14 -> 184
    //   173: aload_2
    //   174: invokeinterface 142 1 0
    //   179: invokeinterface 147 1 0
    //   184: aload 23
    //   186: athrow
    //   187: getstatic 96	com/sina/weibo/WeiboApplication:UA	Ljava/lang/String;
    //   190: astore_3
    //   191: goto -177 -> 14
    //   194: aload 12
    //   196: invokeinterface 151 1 0
    //   201: invokeinterface 157 1 0
    //   206: astore 24
    //   208: new 159	java/io/ByteArrayOutputStream
    //   211: dup
    //   212: invokespecial 160	java/io/ByteArrayOutputStream:<init>	()V
    //   215: astore 25
    //   217: aload 12
    //   219: astore 26
    //   221: ldc 162
    //   223: astore 27
    //   225: aload 26
    //   227: aload 27
    //   229: invokeinterface 166 2 0
    //   234: astore 28
    //   236: aload 28
    //   238: ifnull +42 -> 280
    //   241: aload 28
    //   243: invokeinterface 171 1 0
    //   248: invokevirtual 174	java/lang/String:toLowerCase	()Ljava/lang/String;
    //   251: ldc 176
    //   253: invokevirtual 180	java/lang/String:indexOf	(Ljava/lang/String;)I
    //   256: istore 29
    //   258: ldc 181
    //   260: istore 30
    //   262: iload 29
    //   264: iload 30
    //   266: if_icmple +14 -> 280
    //   269: new 183	java/util/zip/GZIPInputStream
    //   272: dup
    //   273: aload 24
    //   275: invokespecial 186	java/util/zip/GZIPInputStream:<init>	(Ljava/io/InputStream;)V
    //   278: astore 24
    //   280: getstatic 30	com/sina/weibo/RPCHelper:sBuffer	[B
    //   283: astore 31
    //   285: aload 24
    //   287: astore 32
    //   289: aload 31
    //   291: astore 33
    //   293: aload 32
    //   295: aload 33
    //   297: invokevirtual 192	java/io/InputStream:read	([B)I
    //   300: istore 34
    //   302: iload 34
    //   304: istore 35
    //   306: ldc 181
    //   308: istore 36
    //   310: iload 35
    //   312: iload 36
    //   314: if_icmpne +93 -> 407
    //   317: new 48	java/lang/String
    //   320: astore 37
    //   322: aload 25
    //   324: invokevirtual 196	java/io/ByteArrayOutputStream:toByteArray	()[B
    //   327: astore 38
    //   329: aload 37
    //   331: astore 39
    //   333: aload 38
    //   335: astore 40
    //   337: aload 39
    //   339: aload 40
    //   341: invokespecial 199	java/lang/String:<init>	([B)V
    //   344: aload 37
    //   346: invokestatic 203	com/sina/weibo/RPCHelper:isError	(Ljava/lang/String;)Z
    //   349: ifeq +92 -> 441
    //   352: aload 37
    //   354: invokestatic 207	com/sina/weibo/RPCHelper:parseError	(Ljava/lang/String;)[Ljava/lang/String;
    //   357: iconst_1
    //   358: aaload
    //   359: astore 41
    //   361: new 6	com/sina/weibo/RPCHelper$ApiException
    //   364: dup
    //   365: aload 41
    //   367: invokespecial 208	com/sina/weibo/RPCHelper$ApiException:<init>	(Ljava/lang/String;)V
    //   370: astore 42
    //   372: new 9	com/sina/weibo/RPCHelper$HttpException
    //   375: dup
    //   376: aload 42
    //   378: invokespecial 138	com/sina/weibo/RPCHelper$HttpException:<init>	(Ljava/lang/Throwable;)V
    //   381: athrow
    //   382: astore 19
    //   384: new 9	com/sina/weibo/RPCHelper$HttpException
    //   387: astore 43
    //   389: aload 43
    //   391: astore 44
    //   393: aload 19
    //   395: astore 45
    //   397: aload 44
    //   399: aload 45
    //   401: invokespecial 138	com/sina/weibo/RPCHelper$HttpException:<init>	(Ljava/lang/Throwable;)V
    //   404: aload 43
    //   406: athrow
    //   407: getstatic 30	com/sina/weibo/RPCHelper:sBuffer	[B
    //   410: astore 46
    //   412: aload 25
    //   414: astore 47
    //   416: aload 46
    //   418: astore 48
    //   420: iconst_0
    //   421: istore 49
    //   423: iload 34
    //   425: istore 50
    //   427: aload 47
    //   429: aload 48
    //   431: iload 49
    //   433: iload 50
    //   435: invokevirtual 212	java/io/ByteArrayOutputStream:write	([BII)V
    //   438: goto -158 -> 280
    //   441: aload_2
    //   442: ifnull +14 -> 456
    //   445: aload_2
    //   446: invokeinterface 142 1 0
    //   451: invokeinterface 147 1 0
    //   456: aload 37
    //   458: areturn
    //
    // Exception table:
    //   from	to	target	type
    //   57	142	142	java/io/IOException
    //   194	382	142	java/io/IOException
    //   407	438	142	java/io/IOException
    //   57	142	167	finally
    //   144	167	167	finally
    //   194	382	167	finally
    //   384	407	167	finally
    //   407	438	167	finally
    //   57	142	382	com/sina/weibo/RPCHelper$ParseException
    //   194	382	382	com/sina/weibo/RPCHelper$ParseException
    //   407	438	382	com/sina/weibo/RPCHelper$ParseException
  }

  private HttpClient getHttpClient()
    throws RPCHelper.HttpException
  {
    NetworkUtil.NetworkState localNetworkState1 = NetworkUtil.getNetworkState(this.mContext);
    DefaultHttpClient localDefaultHttpClient = new DefaultHttpClient();
    NetworkUtil.NetworkState localNetworkState2 = NetworkUtil.NetworkState.NOTHING;
    if (localNetworkState1 == localNetworkState2)
    {
      NoSignalException localNoSignalException = new NoSignalException();
      throw new HttpException();
    }
    NetworkUtil.NetworkState localNetworkState3 = NetworkUtil.NetworkState.MOBILE;
    if (localNetworkState1 == localNetworkState3)
    {
      NetworkUtil.APNWrapper localAPNWrapper = NetworkUtil.getAPN(this.mContext);
      if (!TextUtils.isEmpty(localAPNWrapper.proxy))
      {
        HttpParams localHttpParams1 = localDefaultHttpClient.getParams();
        String str = localAPNWrapper.proxy;
        int i = localAPNWrapper.port;
        HttpHost localHttpHost = new HttpHost(str, i);
        HttpParams localHttpParams2 = localHttpParams1.setParameter("http.route.default-proxy", localHttpHost);
      }
    }
    HttpParams localHttpParams3 = localDefaultHttpClient.getParams();
    HttpConnectionParamBean localHttpConnectionParamBean = new HttpConnectionParamBean(localHttpParams3);
    localHttpConnectionParamBean.setSoTimeout(30000);
    localHttpConnectionParamBean.setConnectionTimeout(30000);
    return localDefaultHttpClient;
  }

  /** @deprecated */
  public static RPCHelper getInstance(Context paramContext)
  {
    monitorenter;
    try
    {
      if (itself == null)
      {
        Context localContext = paramContext.getApplicationContext();
        itself = new RPCHelper(localContext);
      }
      RPCHelper localRPCHelper = itself;
      monitorexit;
      return localRPCHelper;
    }
    finally
    {
      localObject = finally;
      monitorexit;
    }
    throw localObject;
  }

  private String getLoginResponseContent(String paramString1, String paramString2)
    throws RPCHelper.HttpException
  {
    try
    {
      ArrayList localArrayList = new ArrayList();
      BasicNameValuePair localBasicNameValuePair1 = new BasicNameValuePair("u", paramString1);
      boolean bool1 = localArrayList.add(localBasicNameValuePair1);
      BasicNameValuePair localBasicNameValuePair2 = new BasicNameValuePair("p", paramString2);
      boolean bool2 = localArrayList.add(localBasicNameValuePair2);
      BasicNameValuePair localBasicNameValuePair3 = new BasicNameValuePair("c", "meizu_m9");
      boolean bool3 = localArrayList.add(localBasicNameValuePair3);
      String str1 = String.valueOf(paramString1);
      String str2 = calculateS(str1 + paramString2);
      BasicNameValuePair localBasicNameValuePair4 = new BasicNameValuePair("s", str2);
      boolean bool4 = localArrayList.add(localBasicNameValuePair4);
      UrlEncodedFormEntity localUrlEncodedFormEntity = new UrlEncodedFormEntity(localArrayList, "UTF-8");
      Object[] arrayOfObject = new Object[4];
      arrayOfObject[0] = "http://t.sina.cn/interface/f/ttt/v3/";
      arrayOfObject[1] = "10225010";
      arrayOfObject[2] = "9176_0001";
      arrayOfObject[3] = "meizu_m9";
      String str3 = String.format("%slogin.php?from=%s&wm=%s&c=%s", arrayOfObject);
      HttpPost localHttpPost = new HttpPost(str3);
      localHttpPost.setEntity(localUrlEncodedFormEntity);
      String str4 = execute(localHttpPost);
      return str4;
    }
    catch (UnsupportedEncodingException localUnsupportedEncodingException)
    {
    }
    throw new HttpException();
  }

  private Object[] getMBlogList(String paramString)
    throws RPCHelper.HttpException
  {
    int i = 3;
    try
    {
      arrayOfObject = new Object[3];
      localArrayList = new ArrayList();
      arrayOfObject[1] = localArrayList;
      localXmlPullParser = Xml.newPullParser();
      StringReader localStringReader = new StringReader(paramString);
      localXmlPullParser.setInput(localStringReader);
      while (true)
      {
        int j = localXmlPullParser.next();
        if (j == 1)
          return arrayOfObject;
        switch (j)
        {
        default:
          break;
        case 2:
          boolean bool1 = localXmlPullParser.getName().equals("count");
          if (!bool1)
            break label169;
          i = 0;
          try
          {
            String str1 = parseText(localXmlPullParser);
            Integer localInteger1 = new Integer(str1);
            arrayOfObject[i] = localInteger1;
          }
          catch (Exception localException)
          {
            i = 0;
            int k = 0;
            Integer localInteger2 = Integer.valueOf(k);
            arrayOfObject[i] = localInteger2;
          }
        }
      }
    }
    catch (NumberFormatException localNumberFormatException)
    {
      while (true)
      {
        ArrayList localArrayList;
        throw new HttpException();
        if (!localXmlPullParser.getName().equals("mblog"))
          break;
        MBlog localMBlog = parseMBlog(localXmlPullParser);
        if (localMBlog == null)
          continue;
        boolean bool2 = localArrayList.add(localMBlog);
      }
    }
    catch (XmlPullParserException localXmlPullParserException)
    {
      while (true)
      {
        Object[] arrayOfObject;
        XmlPullParser localXmlPullParser;
        throw new HttpException();
        if (!localXmlPullParser.getName().equals("relation"))
          continue;
        String str2 = parseText(localXmlPullParser);
        Integer localInteger3 = new Integer(str2);
        arrayOfObject[2] = localInteger3;
      }
    }
    catch (IOException localIOException)
    {
      label169: throw new HttpException();
    }
    catch (ParseException localParseException)
    {
    }
    throw new HttpException();
  }

  private Object[] getUserInfoList(HttpGet paramHttpGet)
    throws RPCHelper.HttpException
  {
    try
    {
      String str1 = execute(paramHttpGet);
      Object[] arrayOfObject = new Object[2];
      localArrayList = new ArrayList();
      arrayOfObject[1] = localArrayList;
      localXmlPullParser = Xml.newPullParser();
      StringReader localStringReader = new StringReader(str1);
      localXmlPullParser.setInput(localStringReader);
      while (true)
      {
        int i = localXmlPullParser.next();
        if (i == 1)
          return arrayOfObject;
        switch (i)
        {
        default:
          break;
        case 2:
          boolean bool1 = localXmlPullParser.getName().equals("count");
          if (!bool1)
            break label177;
          int j = 0;
          try
          {
            String str2 = parseText(localXmlPullParser);
            Integer localInteger1 = new Integer(str2);
            arrayOfObject[j] = localInteger1;
          }
          catch (Exception localException)
          {
            j = 0;
            int k = 0;
            Integer localInteger2 = Integer.valueOf(k);
            arrayOfObject[j] = localInteger2;
          }
        }
      }
    }
    catch (XmlPullParserException localXmlPullParserException)
    {
      while (true)
      {
        ArrayList localArrayList;
        XmlPullParser localXmlPullParser;
        throw new HttpException();
        if (!localXmlPullParser.getName().equals("info"))
          continue;
        UserInfo localUserInfo = parseUserInfo(localXmlPullParser);
        if (localUserInfo == null)
          continue;
        boolean bool2 = localArrayList.add(localUserInfo);
      }
    }
    catch (IOException localIOException)
    {
      label177: throw new HttpException();
    }
    catch (ParseException localParseException)
    {
    }
    throw new HttpException();
  }

  private static boolean isError(String paramString)
  {
    if ((paramString.contains("<errno>")) && (paramString.contains("</errno>")));
    for (int i = 1; ; i = 0)
      return i;
  }

  private static Object[] parseAddfavResult(String paramString)
    throws RPCHelper.HttpException, RPCHelper.ParseException
  {
    Object[] arrayOfObject = new Object[2];
    XmlPullParser localXmlPullParser = Xml.newPullParser();
    label134: label142: String str3;
    try
    {
      StringReader localStringReader = new StringReader(paramString);
      localXmlPullParser.setInput(localStringReader);
      while (true)
      {
        int i = localXmlPullParser.next();
        if (i == 1)
          return arrayOfObject;
        switch (i)
        {
        default:
          break;
        case 2:
          if (!localXmlPullParser.getName().equals("result"))
            break label142;
          int j = 0;
          if (!parseText(localXmlPullParser).equals("1"))
            break label134;
          int k = 1;
          Boolean localBoolean = Boolean.valueOf(k);
          arrayOfObject[j] = localBoolean;
        }
      }
    }
    catch (XmlPullParserException localXmlPullParserException)
    {
      while (true)
      {
        String str1 = PARSE_ERROR;
        throw new ParseException(localXmlPullParserException);
        int m = 0;
        continue;
        if (!localXmlPullParser.getName().equals("favid"))
          continue;
        String str2 = parseText(localXmlPullParser);
        arrayOfObject[1] = str2;
      }
    }
    catch (IOException localIOException)
    {
      str3 = UNKNOWN_ERROR;
    }
    throw new HttpException(localIOException);
  }

  public static Comment parseComment(XmlPullParser paramXmlPullParser)
    throws RPCHelper.ParseException
  {
    Comment localComment = new Comment();
    while (true)
    {
      try
      {
        int i = paramXmlPullParser.next();
        if (i == 1)
          return localComment;
        switch (i)
        {
        default:
          break;
        case 2:
          if (paramXmlPullParser.getName().equals("uid"))
          {
            String str1 = parseText(paramXmlPullParser);
            localComment.uid = str1;
            continue;
          }
        case 3:
        }
      }
      catch (Exception localException)
      {
        String str2 = PARSE_ERROR;
        throw new ParseException(localException);
      }
      if (paramXmlPullParser.getName().equals("nick"))
      {
        String str3 = parseText(paramXmlPullParser);
        localComment.nick = str3;
        continue;
      }
      if (paramXmlPullParser.getName().equals("couid"))
      {
        String str4 = parseText(paramXmlPullParser);
        localComment.couid = str4;
        continue;
      }
      if (paramXmlPullParser.getName().equals("conick"))
      {
        String str5 = parseText(paramXmlPullParser);
        localComment.conick = str5;
        continue;
      }
      if (paramXmlPullParser.getName().equals("commentrt"))
      {
        int j = Integer.parseInt(parseText(paramXmlPullParser));
        localComment.commentrt = j;
        continue;
      }
      if (paramXmlPullParser.getName().equals("content"))
      {
        String str6 = parseText(paramXmlPullParser);
        localComment.content = str6;
        continue;
      }
      if (paramXmlPullParser.getName().equals("cmtid"))
      {
        String str7 = parseText(paramXmlPullParser);
        localComment.cmtid = str7;
        continue;
      }
      if (paramXmlPullParser.getName().equals("cmtuid"))
      {
        String str8 = parseText(paramXmlPullParser);
        localComment.cmtuid = str8;
        continue;
      }
      if (!paramXmlPullParser.getName().equals("time"))
        continue;
      long l = Long.parseLong(parseText(paramXmlPullParser)) * 1000L;
      Date localDate = new Date(l);
      localComment.time = localDate;
      continue;
      boolean bool = paramXmlPullParser.getName().equals("comment");
      if (!bool)
        continue;
    }
  }

  public static CommentMessage parseCommentMessage(XmlPullParser paramXmlPullParser)
    throws RPCHelper.ParseException
  {
    CommentMessage localCommentMessage = new CommentMessage();
    while (true)
    {
      try
      {
        int i = paramXmlPullParser.next();
        if (i == 1)
          return localCommentMessage;
        switch (i)
        {
        default:
          break;
        case 2:
          if (paramXmlPullParser.getName().equals("mblogid"))
          {
            String str1 = parseText(paramXmlPullParser);
            localCommentMessage.mblogid = str1;
            continue;
          }
        case 3:
        }
      }
      catch (Exception localException)
      {
        String str2 = PARSE_ERROR;
        throw new ParseException(localException);
      }
      if (paramXmlPullParser.getName().equals("mbloguid"))
      {
        String str3 = parseText(paramXmlPullParser);
        localCommentMessage.mbloguid = str3;
        continue;
      }
      if (paramXmlPullParser.getName().equals("mblognick"))
      {
        String str4 = parseText(paramXmlPullParser);
        localCommentMessage.mblognick = str4;
        continue;
      }
      if (paramXmlPullParser.getName().equals("mblogcontent"))
      {
        String str5 = parseText(paramXmlPullParser);
        localCommentMessage.mblogcontent = str5;
        continue;
      }
      if (paramXmlPullParser.getName().equals("srcid"))
      {
        String str6 = parseText(paramXmlPullParser);
        localCommentMessage.srcid = str6;
        continue;
      }
      if (paramXmlPullParser.getName().equals("srcuid"))
      {
        String str7 = parseText(paramXmlPullParser);
        localCommentMessage.srcuid = str7;
        continue;
      }
      if (paramXmlPullParser.getName().equals("srcnick"))
      {
        String str8 = parseText(paramXmlPullParser);
        localCommentMessage.srcnick = str8;
        continue;
      }
      if (paramXmlPullParser.getName().equals("srccontent"))
      {
        String str9 = parseText(paramXmlPullParser);
        localCommentMessage.srccontent = str9;
        continue;
      }
      if (paramXmlPullParser.getName().equals("commentid"))
      {
        String str10 = parseText(paramXmlPullParser);
        localCommentMessage.commentid = str10;
        continue;
      }
      if (paramXmlPullParser.getName().equals("commentuid"))
      {
        String str11 = parseText(paramXmlPullParser);
        localCommentMessage.commentuid = str11;
        continue;
      }
      if (paramXmlPullParser.getName().equals("commentnick"))
      {
        String str12 = parseText(paramXmlPullParser);
        localCommentMessage.commentnick = str12;
        continue;
      }
      if (paramXmlPullParser.getName().equals("commentportrait"))
      {
        String str13 = parseText(paramXmlPullParser);
        localCommentMessage.commentportrait = str13;
        continue;
      }
      if (paramXmlPullParser.getName().equals("commentcontent"))
      {
        String str14 = parseText(paramXmlPullParser);
        localCommentMessage.commentcontent = str14;
        continue;
      }
      if (!paramXmlPullParser.getName().equals("commenttime"))
        continue;
      long l = Long.parseLong(parseText(paramXmlPullParser)) * 1000L;
      Date localDate = new Date(l);
      localCommentMessage.commenttime = localDate;
      continue;
      boolean bool = paramXmlPullParser.getName().equals("msg");
      if (!bool)
        continue;
    }
  }

  private static String[] parseError(String paramString)
    throws RPCHelper.ParseException
  {
    String[] arrayOfString = new String[2];
    while (true)
    {
      XmlPullParser localXmlPullParser;
      try
      {
        localXmlPullParser = Xml.newPullParser();
        StringReader localStringReader = new StringReader(paramString);
        localXmlPullParser.setInput(localStringReader);
        int i = localXmlPullParser.next();
        if (i == 1)
          return arrayOfString;
        switch (i)
        {
        default:
          break;
        case 2:
          if (localXmlPullParser.getName().equals("errno"))
          {
            if (localXmlPullParser.next() != 4)
              continue;
            String str1 = localXmlPullParser.getText().trim();
            arrayOfString[0] = str1;
            continue;
          }
        }
      }
      catch (Exception localException)
      {
        String str2 = PARSE_ERROR;
        throw new ParseException(localException);
      }
      if ((!localXmlPullParser.getName().equals("errmsg")) || (localXmlPullParser.next() != 4))
        continue;
      String str3 = localXmlPullParser.getText().trim();
      arrayOfString[1] = str3;
    }
  }

  public static Fan parseFan(XmlPullParser paramXmlPullParser)
    throws RPCHelper.ParseException
  {
    Fan localFan = new Fan();
    while (true)
    {
      try
      {
        int i = paramXmlPullParser.next();
        if (i == 1)
          return localFan;
        switch (i)
        {
        default:
          break;
        case 2:
          if (paramXmlPullParser.getName().equals("uid"))
          {
            String str1 = parseText(paramXmlPullParser);
            localFan.uid = str1;
            continue;
          }
        case 3:
        }
      }
      catch (Exception localException)
      {
        String str2 = PARSE_ERROR;
        throw new ParseException(localException);
      }
      if (paramXmlPullParser.getName().equals("nick"))
      {
        String str3 = parseText(paramXmlPullParser);
        localFan.nick = str3;
        continue;
      }
      if (paramXmlPullParser.getName().equals("gender"))
      {
        int j = Integer.parseInt(parseText(paramXmlPullParser));
        localFan.gender = j;
        continue;
      }
      if (paramXmlPullParser.getName().equals("portrait"))
      {
        String str4 = parseText(paramXmlPullParser);
        localFan.portrait = str4;
        continue;
      }
      if (paramXmlPullParser.getName().equals("num"))
      {
        int k = Integer.parseInt(parseText(paramXmlPullParser));
        localFan.num = k;
        continue;
      }
      if (paramXmlPullParser.getName().equals("relation"))
      {
        int m = Integer.parseInt(parseText(paramXmlPullParser));
        localFan.relation = m;
        continue;
      }
      if (paramXmlPullParser.getName().equals("content"))
      {
        String str5 = parseText(paramXmlPullParser);
        localFan.mblogcontent = str5;
        continue;
      }
      if (paramXmlPullParser.getName().equals("time"))
      {
        long l = Long.parseLong(parseText(paramXmlPullParser)) * 1000L;
        Date localDate = new Date(l);
        localFan.mblogtime = localDate;
        continue;
      }
      if (!paramXmlPullParser.getName().equals("vip"))
        continue;
      String str6 = parseText(paramXmlPullParser);
      if ("1".equalsIgnoreCase(str6));
      for (int n = 1; ; n = 0)
      {
        localFan.isVip = n;
        break;
      }
      boolean bool = paramXmlPullParser.getName().equals("info");
      if (!bool)
        continue;
    }
  }

  public static FavHotWord parseFavHotWord(XmlPullParser paramXmlPullParser)
    throws RPCHelper.ParseException
  {
    FavHotWord localFavHotWord = new FavHotWord();
    while (true)
    {
      try
      {
        int i = paramXmlPullParser.next();
        if (i == 1)
          return localFavHotWord;
        switch (i)
        {
        default:
          break;
        case 2:
          if (paramXmlPullParser.getName().equals("favid"))
          {
            String str1 = parseText(paramXmlPullParser);
            localFavHotWord.favid = str1;
            continue;
          }
        case 3:
        }
      }
      catch (Exception localException)
      {
        String str2 = PARSE_ERROR;
        throw new ParseException(localException);
      }
      if (!paramXmlPullParser.getName().equals("favword"))
        continue;
      String str3 = parseText(paramXmlPullParser);
      localFavHotWord.favword = str3;
      continue;
      boolean bool = paramXmlPullParser.getName().equals("favhotword");
      if (!bool)
        continue;
    }
  }

  public static MBlog parseMBlog(XmlPullParser paramXmlPullParser)
    throws RPCHelper.ParseException
  {
    MBlog localMBlog1 = new MBlog();
    while (true)
    {
      try
      {
        int i = paramXmlPullParser.next();
        if (i != 1)
          continue;
        MBlog localMBlog2 = localMBlog1;
        return localMBlog2;
        switch (i)
        {
        default:
          break;
        case 2:
          if (!paramXmlPullParser.getName().equals("uid"))
            continue;
          String str3 = parseText(paramXmlPullParser);
          localMBlog1.uid = str3;
          if (!localMBlog1.uid.equals(""))
            continue;
          int j = 0;
          continue;
          if (paramXmlPullParser.getName().equals("favid"))
          {
            String str4 = parseText(paramXmlPullParser);
            localMBlog1.favid = str4;
            continue;
          }
        case 3:
        }
      }
      catch (Exception localException)
      {
        String str5 = PARSE_ERROR;
        throw new ParseException(localException);
      }
      if (paramXmlPullParser.getName().equals("mblogid"))
      {
        String str6 = parseText(paramXmlPullParser);
        localMBlog1.mblogid = str6;
        continue;
      }
      String str7;
      if (paramXmlPullParser.getName().equals("nick"))
      {
        str7 = parseText(paramXmlPullParser);
        if (WeiboApplication.ME.equals(str7))
        {
          if (StaticInfo.mUser.nick == null);
          for (String str1 = WeiboApplication.ME; ; str1 = StaticInfo.mUser.nick)
          {
            localMBlog1.nick = str1;
            break;
          }
        }
        localMBlog1.nick = str7;
        continue;
      }
      if (paramXmlPullParser.getName().equals("portrait"))
      {
        String str8 = parseText(paramXmlPullParser);
        localMBlog1.portrait = str8;
        continue;
      }
      if (paramXmlPullParser.getName().equals("vip"))
      {
        if (parseText(paramXmlPullParser).equals("1"));
        for (int k = 1; ; k = 0)
        {
          localMBlog1.vip = k;
          break;
        }
      }
      if (paramXmlPullParser.getName().equals("content"))
      {
        String str9 = parseText(paramXmlPullParser);
        localMBlog1.content = str9;
        continue;
      }
      if (paramXmlPullParser.getName().equals("rtrootuid"))
      {
        String str10 = parseText(paramXmlPullParser);
        localMBlog1.rtrootuid = str10;
        continue;
      }
      if (paramXmlPullParser.getName().equals("rtrootid"))
      {
        String str11 = parseText(paramXmlPullParser);
        localMBlog1.rtrootid = str11;
        continue;
      }
      if (paramXmlPullParser.getName().equals("rtrootnick"))
      {
        str7 = parseText(paramXmlPullParser);
        if (WeiboApplication.ME.equals(str7))
        {
          if (StaticInfo.mUser.nick == null);
          for (String str2 = WeiboApplication.ME; ; str2 = StaticInfo.mUser.nick)
          {
            localMBlog1.rtrootnick = str2;
            break;
          }
        }
        localMBlog1.rtrootnick = str7;
        continue;
      }
      if (paramXmlPullParser.getName().equals("rtrootvip"))
      {
        if (parseText(paramXmlPullParser).equals("1"));
        for (int m = 1; ; m = 0)
        {
          localMBlog1.rtrootvip = m;
          break;
        }
      }
      if (paramXmlPullParser.getName().equals("rtreason"))
      {
        String str12 = parseText(paramXmlPullParser);
        localMBlog1.rtreason = str12;
        continue;
      }
      if (paramXmlPullParser.getName().equals("rtnum"))
      {
        int n = Integer.parseInt(parseText(paramXmlPullParser));
        localMBlog1.rtnum = n;
        continue;
      }
      if (paramXmlPullParser.getName().equals("commentnum"))
      {
        int i1 = Integer.parseInt(parseText(paramXmlPullParser));
        localMBlog1.commentnum = i1;
        continue;
      }
      if (paramXmlPullParser.getName().equals("time"))
      {
        long l = Long.parseLong(parseText(paramXmlPullParser)) * 1000L;
        Date localDate = new Date(l);
        localMBlog1.time = localDate;
        continue;
      }
      if (paramXmlPullParser.getName().equals("pic"))
      {
        String str13 = parseText(paramXmlPullParser);
        localMBlog1.pic = str13;
        continue;
      }
      if (!paramXmlPullParser.getName().equals("source"))
        continue;
      String str14 = parseText(paramXmlPullParser);
      localMBlog1.src = str14;
      continue;
      boolean bool = paramXmlPullParser.getName().equals("mblog");
      if (!bool)
        continue;
    }
  }

  public static Message parseMessage(XmlPullParser paramXmlPullParser)
    throws RPCHelper.ParseException
  {
    Message localMessage = new Message();
    while (true)
    {
      try
      {
        int i = paramXmlPullParser.next();
        if (i == 1)
          return localMessage;
        switch (i)
        {
        default:
          break;
        case 2:
          if (paramXmlPullParser.getName().equals("num"))
          {
            int j = Integer.parseInt(parseText(paramXmlPullParser));
            localMessage.num = j;
            continue;
          }
        case 3:
        }
      }
      catch (Exception localException)
      {
        String str1 = PARSE_ERROR;
        throw new ParseException(localException);
      }
      if (paramXmlPullParser.getName().equals("time"))
      {
        long l = Long.parseLong(parseText(paramXmlPullParser)) * 1000L;
        Date localDate = new Date(l);
        localMessage.time = localDate;
        continue;
      }
      if (paramXmlPullParser.getName().equals("type"))
      {
        int k = Integer.parseInt(parseText(paramXmlPullParser));
        localMessage.type = k;
        continue;
      }
      if (paramXmlPullParser.getName().equals("uid"))
      {
        String str2 = parseText(paramXmlPullParser);
        localMessage.uid = str2;
        continue;
      }
      if (paramXmlPullParser.getName().equals("nick"))
      {
        String str3 = parseText(paramXmlPullParser);
        localMessage.nick = str3;
        continue;
      }
      if (paramXmlPullParser.getName().equals("portrait"))
      {
        String str4 = parseText(paramXmlPullParser);
        localMessage.portrait = str4;
        continue;
      }
      if (!paramXmlPullParser.getName().equals("content"))
        continue;
      String str5 = parseText(paramXmlPullParser);
      localMessage.content = str5;
      continue;
      boolean bool = paramXmlPullParser.getName().equals("msg");
      if (!bool)
        continue;
    }
  }

  private static boolean parseResult(String paramString)
    throws RPCHelper.HttpException, RPCHelper.ParseException
  {
    int i = 0;
    XmlPullParser localXmlPullParser = Xml.newPullParser();
    String str2;
    try
    {
      StringReader localStringReader = new StringReader(paramString);
      localXmlPullParser.setInput(localStringReader);
      do
        while (true)
        {
          int j = localXmlPullParser.next();
          if (j == 1)
            return i;
          switch (j)
          {
          default:
          case 2:
          }
        }
      while (!localXmlPullParser.getName().equals("result"));
      boolean bool = parseText(localXmlPullParser).equals("1");
      if (bool);
      for (i = 1; ; i = 0)
        break;
    }
    catch (XmlPullParserException localXmlPullParserException)
    {
      String str1 = PARSE_ERROR;
      throw new ParseException(localXmlPullParserException);
    }
    catch (IOException localIOException)
    {
      str2 = UNKNOWN_ERROR;
    }
    throw new HttpException(localIOException);
  }

  private static String parseText(XmlPullParser paramXmlPullParser)
    throws RPCHelper.ParseException
  {
    String str3;
    try
    {
      String str1;
      if (paramXmlPullParser.next() == 4)
        str1 = replaceEntityRef(paramXmlPullParser.getText().trim());
      for (String str2 = str1; ; str2 = "")
        return str2;
    }
    catch (Exception localException)
    {
      str3 = PARSE_ERROR;
    }
    throw new ParseException(localException);
  }

  private static UserInfo parseUserInfo(XmlPullParser paramXmlPullParser)
    throws RPCHelper.HttpException, RPCHelper.ParseException
  {
    UserInfo localUserInfo = new UserInfo();
    while (true)
    {
      try
      {
        int i = paramXmlPullParser.next();
        if (i == 1)
          return localUserInfo;
        switch (i)
        {
        default:
          break;
        case 2:
          if (!paramXmlPullParser.getName().equals("sid"))
            continue;
          String str1 = parseText(paramXmlPullParser);
          localUserInfo.sid = str1;
          continue;
        case 3:
        }
      }
      catch (XmlPullParserException localXmlPullParserException)
      {
        String str2 = PARSE_ERROR;
        throw new ParseException(localXmlPullParserException);
        if (paramXmlPullParser.getName().equals("uid"))
        {
          String str3 = parseText(paramXmlPullParser);
          localUserInfo.uid = str3;
          continue;
        }
      }
      catch (IOException localIOException)
      {
        String str4 = UNKNOWN_ERROR;
        throw new HttpException(localIOException);
      }
      if (paramXmlPullParser.getName().equals("nick"))
      {
        String str5 = parseText(paramXmlPullParser);
        localUserInfo.nick = str5;
        continue;
      }
      if (paramXmlPullParser.getName().equals("portrait"))
      {
        String str6 = parseText(paramXmlPullParser);
        localUserInfo.portrait = str6;
        continue;
      }
      if (paramXmlPullParser.getName().equals("gender"))
      {
        int j = Integer.parseInt(parseText(paramXmlPullParser));
        localUserInfo.gender = j;
        continue;
      }
      if (paramXmlPullParser.getName().equals("vip"))
      {
        String str7 = parseText(paramXmlPullParser);
        if ("1".equals(str7))
        {
          localUserInfo.vip = 1;
          continue;
        }
        localUserInfo.vip = 0;
        continue;
      }
      if (paramXmlPullParser.getName().equals("intro"))
      {
        String str8 = parseText(paramXmlPullParser);
        localUserInfo.intro = str8;
        continue;
      }
      if (paramXmlPullParser.getName().equals("domain"))
      {
        String str9 = parseText(paramXmlPullParser);
        localUserInfo.domain = str9;
        continue;
      }
      if (paramXmlPullParser.getName().equals("province"))
      {
        String str10 = parseText(paramXmlPullParser);
        localUserInfo.province = str10;
        continue;
      }
      if (paramXmlPullParser.getName().equals("city"))
      {
        String str11 = parseText(paramXmlPullParser);
        localUserInfo.city = str11;
        continue;
      }
      if (paramXmlPullParser.getName().equals("relation"))
      {
        int k = Integer.parseInt(parseText(paramXmlPullParser));
        localUserInfo.relation = k;
        continue;
      }
      if (paramXmlPullParser.getName().equals("mblognum"))
      {
        int m = Integer.parseInt(parseText(paramXmlPullParser));
        localUserInfo.mblognum = m;
        continue;
      }
      if (paramXmlPullParser.getName().equals("meattnum"))
      {
        int n = Integer.parseInt(parseText(paramXmlPullParser));
        localUserInfo.meattnum = n;
        continue;
      }
      if (paramXmlPullParser.getName().equals("attmenum"))
      {
        int i1 = Integer.parseInt(parseText(paramXmlPullParser));
        localUserInfo.attmenum = i1;
        continue;
      }
      if (paramXmlPullParser.getName().equals("num"))
      {
        int i2 = Integer.parseInt(parseText(paramXmlPullParser));
        localUserInfo.attmenum = i2;
        continue;
      }
      if (paramXmlPullParser.getName().equals("remark"))
      {
        String str12 = parseText(paramXmlPullParser);
        localUserInfo.remark = str12;
        continue;
      }
      if (paramXmlPullParser.getName().equals("viptitle"))
      {
        String str13 = parseText(paramXmlPullParser);
        localUserInfo.viptitle = str13;
        continue;
      }
      if (paramXmlPullParser.getName().equals("favblognum"))
      {
        int i3 = Integer.parseInt(parseText(paramXmlPullParser));
        localUserInfo.favBlogNum = i3;
        continue;
      }
      if (!paramXmlPullParser.getName().equals("favhotwordnum"))
        continue;
      int i4 = Integer.parseInt(parseText(paramXmlPullParser));
      localUserInfo.favHotwordNum = i4;
      continue;
      boolean bool = paramXmlPullParser.getName().equals("info");
      if (!bool)
        continue;
    }
  }

  public static UserRankItem parseUserRank(XmlPullParser paramXmlPullParser)
    throws RPCHelper.ParseException
  {
    UserRankItem localUserRankItem = new UserRankItem();
    while (true)
    {
      try
      {
        int i = paramXmlPullParser.next();
        if (i == 1)
          return localUserRankItem;
        switch (i)
        {
        default:
          break;
        case 2:
          String str1 = paramXmlPullParser.getName();
          if (paramXmlPullParser.getName().equals("uid"))
          {
            String str2 = parseText(paramXmlPullParser);
            localUserRankItem.uid = str2;
            continue;
          }
        case 3:
        }
      }
      catch (Exception localException)
      {
        String str3 = PARSE_ERROR;
        throw new ParseException(localException);
      }
      if (paramXmlPullParser.getName().equals("nick"))
      {
        String str4 = parseText(paramXmlPullParser);
        localUserRankItem.nick = str4;
        continue;
      }
      if (paramXmlPullParser.getName().equals("portrait"))
      {
        String str5 = parseText(paramXmlPullParser);
        localUserRankItem.portrait = str5;
        continue;
      }
      if (paramXmlPullParser.getName().equals("num"))
      {
        int j = Integer.parseInt(parseText(paramXmlPullParser));
        localUserRankItem.num = j;
        continue;
      }
      if (paramXmlPullParser.getName().equals("vip"))
      {
        int k = Integer.parseInt(parseText(paramXmlPullParser));
        localUserRankItem.vip = k;
        continue;
      }
      if (paramXmlPullParser.getName().equals("relation"))
      {
        int m = Integer.parseInt(parseText(paramXmlPullParser));
        localUserRankItem.relation = m;
        continue;
      }
      if (paramXmlPullParser.getName().equals("type"))
      {
        String str6 = parseText(paramXmlPullParser);
        localUserRankItem.type = str6;
        continue;
      }
      if (paramXmlPullParser.getName().equals("time"))
      {
        long l = Long.parseLong(parseText(paramXmlPullParser)) * 1000L;
        Date localDate = new Date(l);
        localUserRankItem.time = localDate;
        continue;
      }
      if (!paramXmlPullParser.getName().equals("newaddnum"))
        continue;
      int n = Integer.parseInt(parseText(paramXmlPullParser));
      localUserRankItem.newAddUser = n;
      continue;
      boolean bool = paramXmlPullParser.getName().equals("info");
      if (!bool)
        continue;
    }
  }

  private static String replaceEntityRef(String paramString)
  {
    return paramString.replaceAll("&lt;", "<").replaceAll("&gt;", ">").replaceAll("&amp;", "&").replaceAll("&apos;", "'").replaceAll("&quot;", "\"");
  }

  private boolean report(User paramUser, String paramString1, String paramString2, String paramString3, int paramInt1, int paramInt2)
    throws RPCHelper.HttpException
  {
    StringBuilder localStringBuilder1 = new StringBuilder();
    StringBuilder localStringBuilder2 = localStringBuilder1.append("http://t.sina.cn/interface/f/ttt/v3/").append("dealcomplaint.php?").append("gsid=");
    String str1 = paramUser.gsid;
    StringBuilder localStringBuilder3 = localStringBuilder2.append(str1).append("&c=").append("meizu_m9").append("&s=");
    String str2 = calculateS(paramUser.uid);
    StringBuilder localStringBuilder4 = localStringBuilder3.append(str2).append("&from=").append("10225010").append("&wm=").append("9176_0001");
    LinkedList localLinkedList = new LinkedList();
    int i = paramInt1;
    int j = 1;
    if (i >= j)
    {
      int k = paramInt1;
      int m = 4;
      if (k <= m)
      {
        String str3 = String.valueOf(paramInt1);
        BasicNameValuePair localBasicNameValuePair1 = new BasicNameValuePair("type", str3);
        boolean bool1 = localLinkedList.add(localBasicNameValuePair1);
      }
    }
    int n = paramInt2;
    int i1 = 1;
    if (n >= i1)
    {
      int i2 = paramInt2;
      int i3 = 3;
      if (i2 <= i3)
      {
        String str4 = String.valueOf(paramInt2);
        BasicNameValuePair localBasicNameValuePair2 = new BasicNameValuePair("group", str4);
        boolean bool2 = localLinkedList.add(localBasicNameValuePair2);
      }
    }
    if (!TextUtils.isEmpty(paramString1))
    {
      BasicNameValuePair localBasicNameValuePair3 = new org/apache/http/message/BasicNameValuePair;
      BasicNameValuePair localBasicNameValuePair4 = localBasicNameValuePair3;
      String str5 = "srcuid";
      String str6 = paramString1;
      localBasicNameValuePair4.<init>(str5, str6);
      boolean bool3 = localLinkedList.add(localBasicNameValuePair3);
    }
    if (!TextUtils.isEmpty(paramString2))
    {
      BasicNameValuePair localBasicNameValuePair5 = new org/apache/http/message/BasicNameValuePair;
      BasicNameValuePair localBasicNameValuePair6 = localBasicNameValuePair5;
      String str7 = "id";
      String str8 = paramString2;
      localBasicNameValuePair6.<init>(str7, str8);
      boolean bool4 = localLinkedList.add(localBasicNameValuePair5);
    }
    BasicNameValuePair localBasicNameValuePair7 = new org/apache/http/message/BasicNameValuePair;
    BasicNameValuePair localBasicNameValuePair8 = localBasicNameValuePair7;
    String str9 = "reason";
    String str10 = paramString3;
    localBasicNameValuePair8.<init>(str9, str10);
    boolean bool5 = localLinkedList.add(localBasicNameValuePair7);
    try
    {
      UrlEncodedFormEntity localUrlEncodedFormEntity = new UrlEncodedFormEntity(localLinkedList, "UTF-8");
      String str11 = localStringBuilder1.toString();
      HttpPost localHttpPost = new HttpPost(str11);
      localHttpPost.setEntity(localUrlEncodedFormEntity);
      String str12 = execute(localHttpPost);
      XmlPullParser localXmlPullParser;
      if (!TextUtils.isEmpty(str12))
      {
        localXmlPullParser = Xml.newPullParser();
        StringReader localStringReader = new StringReader(str12);
        localXmlPullParser.setInput(localStringReader);
      }
      while (true)
      {
        int i4 = localXmlPullParser.next();
        if (i4 == 1);
        for (int i5 = 0; ; i5 = 1)
        {
          return i5;
          if ((i4 != 2) || (!localXmlPullParser.getName().equalsIgnoreCase("result")))
            break;
          if (Integer.parseInt(parseText(localXmlPullParser)) != 1)
            break label502;
        }
        label502: Utils.logd("result code is not 1.");
      }
    }
    catch (NumberFormatException localNumberFormatException)
    {
      throw new HttpException();
    }
    catch (UnsupportedEncodingException localUnsupportedEncodingException)
    {
      throw new HttpException();
    }
    catch (XmlPullParserException localXmlPullParserException)
    {
      throw new HttpException();
    }
    catch (IOException localIOException)
    {
      throw new HttpException();
    }
    catch (ParseException localParseException)
    {
    }
    throw new HttpException();
  }

  public boolean addComment(User paramUser, String paramString)
    throws RPCHelper.HttpException
  {
    try
    {
      Object[] arrayOfObject = new Object[7];
      arrayOfObject[0] = "http://t.sina.cn/interface/f/ttt/v3/";
      String str1 = paramUser.gsid;
      arrayOfObject[1] = str1;
      arrayOfObject[2] = paramString;
      arrayOfObject[3] = "meizu_m9";
      String str2 = calculateS(paramUser.uid);
      arrayOfObject[4] = str2;
      arrayOfObject[5] = "10225010";
      arrayOfObject[6] = "9176_0001";
      String str3 = String.format("%sdealatt.php?gsid=%s&act=1&uid=%s&c=%s&s=%s&from=%s&wm=%s", arrayOfObject);
      HttpGet localHttpGet = new HttpGet(str3);
      boolean bool = parseResult(execute(localHttpGet));
      return bool;
    }
    catch (ParseException localParseException)
    {
    }
    throw new HttpException();
  }

  public boolean addComment(User paramUser, String paramString1, String paramString2, String paramString3, boolean paramBoolean)
    throws RPCHelper.HttpException
  {
    try
    {
      ArrayList localArrayList = new ArrayList();
      BasicNameValuePair localBasicNameValuePair1 = new BasicNameValuePair("c", "meizu_m9");
      boolean bool1 = localArrayList.add(localBasicNameValuePair1);
      String str1 = calculateS(paramUser.uid);
      BasicNameValuePair localBasicNameValuePair2 = new BasicNameValuePair("s", str1);
      boolean bool2 = localArrayList.add(localBasicNameValuePair2);
      BasicNameValuePair localBasicNameValuePair3 = new BasicNameValuePair("act", "add");
      boolean bool3 = localArrayList.add(localBasicNameValuePair3);
      BasicNameValuePair localBasicNameValuePair4 = new BasicNameValuePair("srcuid", paramString1);
      boolean bool4 = localArrayList.add(localBasicNameValuePair4);
      BasicNameValuePair localBasicNameValuePair5 = new BasicNameValuePair("srcid", paramString2);
      boolean bool5 = localArrayList.add(localBasicNameValuePair5);
      BasicNameValuePair localBasicNameValuePair6 = new BasicNameValuePair("content", paramString3);
      boolean bool6 = localArrayList.add(localBasicNameValuePair6);
      BasicNameValuePair localBasicNameValuePair7 = new BasicNameValuePair("from", "10225010");
      boolean bool7 = localArrayList.add(localBasicNameValuePair7);
      BasicNameValuePair localBasicNameValuePair8 = new BasicNameValuePair("wm", "9176_0001");
      boolean bool8 = localArrayList.add(localBasicNameValuePair8);
      if (paramBoolean)
      {
        BasicNameValuePair localBasicNameValuePair9 = new BasicNameValuePair("rt", "1");
        boolean bool9 = localArrayList.add(localBasicNameValuePair9);
      }
      UrlEncodedFormEntity localUrlEncodedFormEntity = new UrlEncodedFormEntity(localArrayList, "UTF-8");
      Object[] arrayOfObject = new Object[5];
      arrayOfObject[0] = "http://t.sina.cn/interface/f/ttt/v3/";
      String str2 = paramUser.gsid;
      arrayOfObject[1] = str2;
      arrayOfObject[2] = "10225010";
      arrayOfObject[3] = "9176_0001";
      arrayOfObject[4] = "meizu_m9";
      String str3 = String.format("%sdealcomment.php?gsid=%s&from=%s&wm=%s&c=%s", arrayOfObject);
      HttpPost localHttpPost = new HttpPost(str3);
      localHttpPost.setEntity(localUrlEncodedFormEntity);
      boolean bool10 = parseResult(execute(localHttpPost));
      return bool10;
    }
    catch (UnsupportedEncodingException localUnsupportedEncodingException)
    {
      throw new HttpException();
    }
    catch (ParseException localParseException)
    {
    }
    throw new HttpException();
  }

  public Object[] addFavMBlog(User paramUser, String paramString)
    throws RPCHelper.HttpException
  {
    try
    {
      Object[] arrayOfObject1 = new Object[7];
      arrayOfObject1[0] = "http://t.sina.cn/interface/f/ttt/v3/";
      String str1 = paramUser.gsid;
      arrayOfObject1[1] = str1;
      arrayOfObject1[2] = paramString;
      arrayOfObject1[3] = "meizu_m9";
      String str2 = calculateS(paramUser.uid);
      arrayOfObject1[4] = str2;
      arrayOfObject1[5] = "10225010";
      arrayOfObject1[6] = "9176_0001";
      String str3 = String.format("%sdealfavmblog.php?gsid=%s&act=0&mid=%s&c=%s&s=%s&from=%s&wm=%s", arrayOfObject1);
      HttpGet localHttpGet = new HttpGet(str3);
      Object[] arrayOfObject2 = parseAddfavResult(execute(localHttpGet));
      return arrayOfObject2;
    }
    catch (ParseException localParseException)
    {
    }
    throw new HttpException();
  }

  public boolean attendTopic(User paramUser, int paramInt, String paramString)
    throws RPCHelper.HttpException
  {
    Object localObject = null;
    if (paramInt == 0);
    try
    {
      Object[] arrayOfObject1 = new Object[7];
      arrayOfObject1[0] = "http://t.sina.cn/interface/f/ttt/v3/";
      String str1 = paramUser.gsid;
      arrayOfObject1[1] = str1;
      arrayOfObject1[2] = paramString;
      arrayOfObject1[3] = "meizu_m9";
      String str2 = calculateS(paramUser.uid);
      arrayOfObject1[4] = str2;
      arrayOfObject1[5] = "10225010";
      arrayOfObject1[6] = "9176_0001";
      String str3 = String.format("%sdealhotword.php?gsid=%s&act=0&value=%s&c=%s&s=%s&from=%s&wm=%s", arrayOfObject1);
      localObject = new HttpGet(str3);
      while (true)
      {
        return parseResult(execute((HttpUriRequest)localObject));
        if (paramInt != 1)
          continue;
        Object[] arrayOfObject2 = new Object[7];
        arrayOfObject2[0] = "http://t.sina.cn/interface/f/ttt/v3/";
        String str4 = paramUser.gsid;
        arrayOfObject2[1] = str4;
        arrayOfObject2[2] = paramString;
        arrayOfObject2[3] = "meizu_m9";
        String str5 = calculateS(paramUser.uid);
        arrayOfObject2[4] = str5;
        arrayOfObject2[5] = "10225010";
        arrayOfObject2[6] = "9176_0001";
        String str6 = String.format("%sdealhotword.php?gsid=%s&act=1&value=%s&c=%s&s=%s&from=%s&wm=%s", arrayOfObject2);
        HttpGet localHttpGet = new HttpGet(str6);
        localObject = localHttpGet;
      }
    }
    catch (ParseException localParseException)
    {
    }
    throw new HttpException();
  }

  public boolean cancelComment(User paramUser, String paramString)
    throws RPCHelper.HttpException
  {
    try
    {
      Object[] arrayOfObject = new Object[7];
      arrayOfObject[0] = "http://t.sina.cn/interface/f/ttt/v3/";
      String str1 = paramUser.gsid;
      arrayOfObject[1] = str1;
      arrayOfObject[2] = paramString;
      arrayOfObject[3] = "meizu_m9";
      String str2 = calculateS(paramUser.uid);
      arrayOfObject[4] = str2;
      arrayOfObject[5] = "10225010";
      arrayOfObject[6] = "9176_0001";
      String str3 = String.format("%sdealatt.php?gsid=%s&act=2&uid=%s&c=%s&s=%s&from=%s&wm=%s", arrayOfObject);
      HttpGet localHttpGet = new HttpGet(str3);
      boolean bool = parseResult(execute(localHttpGet));
      return bool;
    }
    catch (ParseException localParseException)
    {
    }
    throw new HttpException();
  }

  public UserStatus checkUserStatus(User paramUser)
    throws RPCHelper.HttpException
  {
    Object[] arrayOfObject = new Object[6];
    arrayOfObject[0] = "http://t.sina.cn/interface/f/ttt/v3/";
    String str1 = paramUser.gsid;
    arrayOfObject[1] = str1;
    arrayOfObject[2] = "meizu_m9";
    String str2 = calculateS(paramUser.uid);
    arrayOfObject[3] = str2;
    arrayOfObject[4] = "10225010";
    arrayOfObject[5] = "9176_0001";
    String str3 = String.format("%scheckuserstatus.php?gsid=%s&c=%s&s=%s&from=%s&wm=%s", arrayOfObject);
    HttpGet localHttpGet = new HttpGet(str3);
    String str4 = execute(localHttpGet);
    UserStatus localUserStatus = new UserStatus();
    XmlPullParser localXmlPullParser = Xml.newPullParser();
    while (true)
    {
      try
      {
        StringReader localStringReader = new StringReader(str4);
        localXmlPullParser.setInput(localStringReader);
        int i = localXmlPullParser.next();
        if (i == 1)
          return localUserStatus;
        switch (i)
        {
        default:
          break;
        case 2:
          if (!localXmlPullParser.getName().equals("sid"))
            continue;
          String str5 = parseText(localXmlPullParser);
          localUserStatus.sid = str5;
          continue;
        }
      }
      catch (XmlPullParserException localXmlPullParserException)
      {
        ParseException localParseException1 = new ParseException();
        throw new HttpException();
        if (!localXmlPullParser.getName().equals("status"))
          continue;
        int j = Integer.parseInt(parseText(localXmlPullParser));
        localUserStatus.status = j;
        continue;
      }
      catch (IOException localIOException)
      {
        throw new HttpException();
        if (localXmlPullParser.getName().equals("url"))
        {
          String str6 = parseText(localXmlPullParser);
          localUserStatus.url = str6;
          continue;
        }
      }
      catch (ParseException localParseException2)
      {
        throw new HttpException();
      }
      if (!localXmlPullParser.getName().equals("msgurl"))
        continue;
      String str7 = parseText(localXmlPullParser);
      localUserStatus.msgurl = str7;
    }
  }

  public boolean deleteAtMessage(User paramUser, String paramString)
    throws RPCHelper.HttpException
  {
    try
    {
      Object[] arrayOfObject = new Object[7];
      arrayOfObject[0] = "http://t.sina.cn/interface/f/ttt/v3/";
      String str1 = paramUser.gsid;
      arrayOfObject[1] = str1;
      arrayOfObject[2] = paramString;
      arrayOfObject[3] = "meizu_m9";
      String str2 = calculateS(paramUser.uid);
      arrayOfObject[4] = str2;
      arrayOfObject[5] = "10225010";
      arrayOfObject[6] = "9176_0001";
      String str3 = String.format("%sdealmsg.php?gsid=%s&act=delatc&msgid=%s&c=%s&s=%s&from=%s&wm=%s", arrayOfObject);
      HttpGet localHttpGet = new HttpGet(str3);
      boolean bool = parseResult(execute(localHttpGet));
      return bool;
    }
    catch (ParseException localParseException)
    {
    }
    throw new HttpException();
  }

  public boolean deleteComment(User paramUser, String paramString1, String paramString2, String paramString3, String paramString4)
    throws RPCHelper.HttpException
  {
    try
    {
      Object[] arrayOfObject = new Object[10];
      arrayOfObject[0] = "http://t.sina.cn/interface/f/ttt/v3/";
      String str1 = paramUser.gsid;
      arrayOfObject[1] = str1;
      arrayOfObject[2] = paramString1;
      arrayOfObject[3] = paramString2;
      arrayOfObject[4] = paramString3;
      arrayOfObject[5] = paramString4;
      arrayOfObject[6] = "meizu_m9";
      String str2 = calculateS(paramUser.uid);
      arrayOfObject[7] = str2;
      arrayOfObject[8] = "10225010";
      arrayOfObject[9] = "9176_0001";
      String str3 = String.format("%sdealcomment.php?gsid=%s&act=delc&srcuid=%s&srcid=%s&cmtuid=%s&cmtid=%s&c=%s&s=%s&from=%s&wm=%s", arrayOfObject);
      HttpGet localHttpGet = new HttpGet(str3);
      boolean bool = parseResult(execute(localHttpGet));
      return bool;
    }
    catch (ParseException localParseException)
    {
    }
    throw new HttpException();
  }

  public boolean deleteFavMBlog(User paramUser, String paramString1, String paramString2)
    throws RPCHelper.HttpException
  {
    try
    {
      Object[] arrayOfObject = new Object[7];
      arrayOfObject[0] = "http://t.sina.cn/interface/f/ttt/v3/";
      String str1 = paramUser.gsid;
      arrayOfObject[1] = str1;
      arrayOfObject[2] = "meizu_m9";
      String str2 = calculateS(paramUser.uid);
      arrayOfObject[3] = str2;
      arrayOfObject[4] = "10225010";
      arrayOfObject[5] = "9176_0001";
      arrayOfObject[6] = paramString2;
      String str3 = String.format("%sdealfavmblog.php?gsid=%s&act=1&c=%s&s=%s&from=%s&wm=%s&mid=%s", arrayOfObject);
      HttpGet localHttpGet = new HttpGet(str3);
      boolean bool = parseResult(execute(localHttpGet));
      return bool;
    }
    catch (ParseException localParseException)
    {
    }
    throw new HttpException();
  }

  public boolean deleteMBlog(User paramUser, String paramString)
    throws RPCHelper.HttpException
  {
    try
    {
      Object[] arrayOfObject = new Object[7];
      arrayOfObject[0] = "http://t.sina.cn/interface/f/ttt/v3/";
      String str1 = paramUser.gsid;
      arrayOfObject[1] = str1;
      arrayOfObject[2] = paramString;
      arrayOfObject[3] = "meizu_m9";
      String str2 = calculateS(paramUser.uid);
      arrayOfObject[4] = str2;
      arrayOfObject[5] = "10225010";
      arrayOfObject[6] = "9176_0001";
      String str3 = String.format("%sdealmblog.php?gsid=%s&act=dodel&id=%s&c=%s&s=%s&from=%s&wm=%s", arrayOfObject);
      HttpGet localHttpGet = new HttpGet(str3);
      boolean bool = parseResult(execute(localHttpGet));
      return bool;
    }
    catch (ParseException localParseException)
    {
    }
    throw new HttpException();
  }

  public boolean deleteMessages(User paramUser, String paramString)
    throws RPCHelper.HttpException
  {
    try
    {
      Object[] arrayOfObject = new Object[7];
      arrayOfObject[0] = "http://t.sina.cn/interface/f/ttt/v3/";
      String str1 = paramUser.gsid;
      arrayOfObject[1] = str1;
      arrayOfObject[2] = paramString;
      arrayOfObject[3] = "meizu_m9";
      String str2 = calculateS(paramUser.uid);
      arrayOfObject[4] = str2;
      arrayOfObject[5] = "10225010";
      arrayOfObject[6] = "9176_0001";
      String str3 = String.format("%sdealmsg.php?gsid=%s&act=delchatc&uid=%s&c=%s&s=%s&from=%s&wm=%s", arrayOfObject);
      HttpGet localHttpGet = new HttpGet(str3);
      boolean bool = parseResult(execute(localHttpGet));
      return bool;
    }
    catch (ParseException localParseException)
    {
    }
    throw new HttpException();
  }

  public boolean editUserInfo(User paramUser, int paramInt1, int paramInt2)
    throws RPCHelper.HttpException
  {
    try
    {
      Object[] arrayOfObject = new Object[9];
      arrayOfObject[0] = "http://t.sina.cn/interface/f/ttt/v3/";
      String str1 = paramUser.gsid;
      arrayOfObject[1] = str1;
      String str2 = URLEncoder.encode(paramUser.nick, "UTF-8");
      arrayOfObject[2] = str2;
      Integer localInteger1 = Integer.valueOf(paramInt1);
      arrayOfObject[3] = localInteger1;
      Integer localInteger2 = Integer.valueOf(paramInt2);
      arrayOfObject[4] = localInteger2;
      arrayOfObject[5] = "meizu_m9";
      String str3 = calculateS(paramUser.uid);
      arrayOfObject[6] = str3;
      arrayOfObject[7] = "10225010";
      arrayOfObject[8] = "9176_0001";
      String str4 = String.format("%sedituserinfo.php?gsid=%s&nick=%s&gender=%d&rename=%d&c=%s&s=%s&from=%s&wm=%s", arrayOfObject);
      HttpGet localHttpGet = new HttpGet(str4);
      return parseResult(execute(localHttpGet));
    }
    catch (UnsupportedEncodingException localUnsupportedEncodingException)
    {
      String str5 = UNKNOWN_ERROR;
      throw new HttpException(localUnsupportedEncodingException);
    }
    catch (ParseException localParseException)
    {
    }
    throw new HttpException();
  }

  // ERROR //
  public boolean forwardMBlog(User paramUser, String paramString1, String paramString2, String paramString3, String paramString4, boolean paramBoolean)
    throws RPCHelper.HttpException
  {
    // Byte code:
    //   0: new 297	java/util/ArrayList
    //   3: dup
    //   4: invokespecial 298	java/util/ArrayList:<init>	()V
    //   7: astore 7
    //   9: new 300	org/apache/http/message/BasicNameValuePair
    //   12: dup
    //   13: ldc_w 314
    //   16: ldc_w 316
    //   19: invokespecial 304	org/apache/http/message/BasicNameValuePair:<init>	(Ljava/lang/String;Ljava/lang/String;)V
    //   22: astore 8
    //   24: aload 7
    //   26: aload 8
    //   28: invokeinterface 310 2 0
    //   33: istore 9
    //   35: aload_1
    //   36: getfield 808	com/sina/weibo/models/User:uid	Ljava/lang/String;
    //   39: invokestatic 318	com/sina/weibo/RPCHelper:calculateS	(Ljava/lang/String;)Ljava/lang/String;
    //   42: astore 10
    //   44: new 300	org/apache/http/message/BasicNameValuePair
    //   47: dup
    //   48: ldc_w 320
    //   51: aload 10
    //   53: invokespecial 304	org/apache/http/message/BasicNameValuePair:<init>	(Ljava/lang/String;Ljava/lang/String;)V
    //   56: astore 11
    //   58: aload 7
    //   60: aload 11
    //   62: invokeinterface 310 2 0
    //   67: istore 12
    //   69: new 300	org/apache/http/message/BasicNameValuePair
    //   72: dup
    //   73: ldc_w 844
    //   76: ldc_w 919
    //   79: invokespecial 304	org/apache/http/message/BasicNameValuePair:<init>	(Ljava/lang/String;Ljava/lang/String;)V
    //   82: astore 13
    //   84: aload 7
    //   86: aload 13
    //   88: invokeinterface 310 2 0
    //   93: istore 14
    //   95: new 300	org/apache/http/message/BasicNameValuePair
    //   98: dup
    //   99: ldc_w 822
    //   102: aload_2
    //   103: invokespecial 304	org/apache/http/message/BasicNameValuePair:<init>	(Ljava/lang/String;Ljava/lang/String;)V
    //   106: astore 15
    //   108: aload 7
    //   110: aload 15
    //   112: invokeinterface 310 2 0
    //   117: istore 16
    //   119: new 300	org/apache/http/message/BasicNameValuePair
    //   122: dup
    //   123: ldc_w 500
    //   126: aload_3
    //   127: invokespecial 304	org/apache/http/message/BasicNameValuePair:<init>	(Ljava/lang/String;Ljava/lang/String;)V
    //   130: astore 17
    //   132: aload 7
    //   134: aload 17
    //   136: invokeinterface 310 2 0
    //   141: istore 18
    //   143: aload 4
    //   145: ifnonnull +235 -> 380
    //   148: new 300	org/apache/http/message/BasicNameValuePair
    //   151: dup
    //   152: ldc_w 921
    //   155: ldc_w 923
    //   158: invokespecial 304	org/apache/http/message/BasicNameValuePair:<init>	(Ljava/lang/String;Ljava/lang/String;)V
    //   161: astore 19
    //   163: aload 7
    //   165: aload 19
    //   167: invokeinterface 310 2 0
    //   172: istore 20
    //   174: new 300	org/apache/http/message/BasicNameValuePair
    //   177: dup
    //   178: ldc_w 459
    //   181: aload 5
    //   183: invokespecial 304	org/apache/http/message/BasicNameValuePair:<init>	(Ljava/lang/String;Ljava/lang/String;)V
    //   186: astore 21
    //   188: aload 7
    //   190: aload 21
    //   192: invokeinterface 310 2 0
    //   197: istore 22
    //   199: new 300	org/apache/http/message/BasicNameValuePair
    //   202: dup
    //   203: ldc_w 847
    //   206: ldc_w 331
    //   209: invokespecial 304	org/apache/http/message/BasicNameValuePair:<init>	(Ljava/lang/String;Ljava/lang/String;)V
    //   212: astore 23
    //   214: aload 7
    //   216: aload 23
    //   218: invokeinterface 310 2 0
    //   223: istore 24
    //   225: new 300	org/apache/http/message/BasicNameValuePair
    //   228: dup
    //   229: ldc_w 849
    //   232: ldc_w 333
    //   235: invokespecial 304	org/apache/http/message/BasicNameValuePair:<init>	(Ljava/lang/String;Ljava/lang/String;)V
    //   238: astore 25
    //   240: aload 7
    //   242: aload 25
    //   244: invokeinterface 310 2 0
    //   249: istore 26
    //   251: iload 6
    //   253: ifeq +29 -> 282
    //   256: new 300	org/apache/http/message/BasicNameValuePair
    //   259: dup
    //   260: ldc_w 925
    //   263: ldc_w 927
    //   266: invokespecial 304	org/apache/http/message/BasicNameValuePair:<init>	(Ljava/lang/String;Ljava/lang/String;)V
    //   269: astore 27
    //   271: aload 7
    //   273: aload 27
    //   275: invokeinterface 310 2 0
    //   280: istore 28
    //   282: new 322	org/apache/http/client/entity/UrlEncodedFormEntity
    //   285: dup
    //   286: aload 7
    //   288: ldc_w 324
    //   291: invokespecial 327	org/apache/http/client/entity/UrlEncodedFormEntity:<init>	(Ljava/util/List;Ljava/lang/String;)V
    //   294: astore 29
    //   296: iconst_5
    //   297: anewarray 4	java/lang/Object
    //   300: astore 30
    //   302: aload 30
    //   304: iconst_0
    //   305: ldc_w 329
    //   308: aastore
    //   309: aload_1
    //   310: getfield 803	com/sina/weibo/models/User:gsid	Ljava/lang/String;
    //   313: astore 31
    //   315: aload 30
    //   317: iconst_1
    //   318: aload 31
    //   320: aastore
    //   321: aload 30
    //   323: iconst_2
    //   324: ldc_w 331
    //   327: aastore
    //   328: aload 30
    //   330: iconst_3
    //   331: ldc_w 333
    //   334: aastore
    //   335: aload 30
    //   337: iconst_4
    //   338: ldc_w 316
    //   341: aastore
    //   342: ldc_w 929
    //   345: aload 30
    //   347: invokestatic 134	java/lang/String:format	(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
    //   350: astore 32
    //   352: new 337	org/apache/http/client/methods/HttpPost
    //   355: dup
    //   356: aload 32
    //   358: invokespecial 338	org/apache/http/client/methods/HttpPost:<init>	(Ljava/lang/String;)V
    //   361: astore 33
    //   363: aload 33
    //   365: aload 29
    //   367: invokevirtual 342	org/apache/http/client/methods/HttpPost:setEntity	(Lorg/apache/http/HttpEntity;)V
    //   370: aload_0
    //   371: aload 33
    //   373: invokespecial 344	com/sina/weibo/RPCHelper:execute	(Lorg/apache/http/client/methods/HttpUriRequest;)Ljava/lang/String;
    //   376: invokestatic 841	com/sina/weibo/RPCHelper:parseResult	(Ljava/lang/String;)Z
    //   379: ireturn
    //   380: new 300	org/apache/http/message/BasicNameValuePair
    //   383: dup
    //   384: ldc_w 921
    //   387: ldc_w 416
    //   390: invokespecial 304	org/apache/http/message/BasicNameValuePair:<init>	(Ljava/lang/String;Ljava/lang/String;)V
    //   393: astore 34
    //   395: aload 7
    //   397: aload 34
    //   399: invokeinterface 310 2 0
    //   404: istore 35
    //   406: new 300	org/apache/http/message/BasicNameValuePair
    //   409: dup
    //   410: ldc_w 652
    //   413: aload 4
    //   415: invokespecial 304	org/apache/http/message/BasicNameValuePair:<init>	(Ljava/lang/String;Ljava/lang/String;)V
    //   418: astore 36
    //   420: aload 7
    //   422: aload 36
    //   424: invokeinterface 310 2 0
    //   429: istore 37
    //   431: goto -257 -> 174
    //   434: astore 38
    //   436: new 9	com/sina/weibo/RPCHelper$HttpException
    //   439: dup
    //   440: aload 38
    //   442: invokespecial 138	com/sina/weibo/RPCHelper$HttpException:<init>	(Ljava/lang/Throwable;)V
    //   445: athrow
    //   446: astore 39
    //   448: getstatic 38	com/sina/weibo/RPCHelper:UNKNOWN_ERROR	Ljava/lang/String;
    //   451: astore 40
    //   453: new 9	com/sina/weibo/RPCHelper$HttpException
    //   456: dup
    //   457: aload 40
    //   459: aload 39
    //   461: invokespecial 429	com/sina/weibo/RPCHelper$HttpException:<init>	(Ljava/lang/String;Ljava/lang/Throwable;)V
    //   464: athrow
    //
    // Exception table:
    //   from	to	target	type
    //   0	282	434	com/sina/weibo/RPCHelper$ParseException
    //   282	296	434	com/sina/weibo/RPCHelper$ParseException
    //   296	431	434	com/sina/weibo/RPCHelper$ParseException
    //   448	465	434	com/sina/weibo/RPCHelper$ParseException
    //   282	296	446	java/io/UnsupportedEncodingException
  }

  public Object[] getAtMsgList(User paramUser, String paramString, int paramInt1, int paramInt2, int paramInt3)
    throws RPCHelper.HttpException
  {
    String str3;
    if (paramString == null)
    {
      Object[] arrayOfObject1 = new Object[9];
      arrayOfObject1[0] = "http://t.sina.cn/interface/f/ttt/v3/";
      String str1 = paramUser.gsid;
      arrayOfObject1[1] = str1;
      Integer localInteger1 = Integer.valueOf(paramInt1);
      arrayOfObject1[2] = localInteger1;
      Integer localInteger2 = Integer.valueOf(paramInt2);
      arrayOfObject1[3] = localInteger2;
      Integer localInteger3 = Integer.valueOf(paramInt3);
      arrayOfObject1[4] = localInteger3;
      arrayOfObject1[5] = "meizu_m9";
      String str2 = calculateS(paramUser.uid);
      arrayOfObject1[6] = str2;
      arrayOfObject1[7] = "10225010";
      arrayOfObject1[8] = "9176_0001";
      str3 = String.format("%smsg.php?gsid=%s&picsize=%d&page=%d&pagesize=%d&act=0&c=%s&s=%s&from=%s&wm=%s", arrayOfObject1);
    }
    String str7;
    for (HttpGet localHttpGet = new HttpGet(str3); ; localHttpGet = new HttpGet(str7))
    {
      String str4 = execute(localHttpGet);
      return getMBlogList(str4);
      Object[] arrayOfObject2 = new Object[10];
      arrayOfObject2[0] = "http://t.sina.cn/interface/f/ttt/v3/";
      String str5 = paramUser.gsid;
      arrayOfObject2[1] = str5;
      arrayOfObject2[2] = paramString;
      Integer localInteger4 = Integer.valueOf(paramInt1);
      arrayOfObject2[3] = localInteger4;
      Integer localInteger5 = Integer.valueOf(paramInt2);
      arrayOfObject2[4] = localInteger5;
      Integer localInteger6 = Integer.valueOf(paramInt3);
      arrayOfObject2[5] = localInteger6;
      arrayOfObject2[6] = "meizu_m9";
      String str6 = calculateS(paramUser.uid);
      arrayOfObject2[7] = str6;
      arrayOfObject2[8] = "10225010";
      arrayOfObject2[9] = "9176_0001";
      str7 = String.format("%smsg.php?gsid=%s&uid=%s&picsize=%d&page=%d&pagesize=%d&act=0&c=%s&s=%s&from=%s&wm=%s", arrayOfObject2);
    }
  }

  public Object[] getAttCommentList(User paramUser, String paramString1, String paramString2, int paramInt1, int paramInt2)
    throws RPCHelper.HttpException
  {
    try
    {
      Object[] arrayOfObject1 = new Object[10];
      arrayOfObject1[0] = "http://t.sina.cn/interface/f/ttt/v3/";
      String str1 = paramUser.gsid;
      arrayOfObject1[1] = str1;
      Integer localInteger1 = Integer.valueOf(paramInt1);
      arrayOfObject1[2] = localInteger1;
      Integer localInteger2 = Integer.valueOf(paramInt2);
      arrayOfObject1[3] = localInteger2;
      arrayOfObject1[4] = paramString1;
      arrayOfObject1[5] = paramString2;
      arrayOfObject1[6] = "meizu_m9";
      String str2 = calculateS(paramUser.uid);
      arrayOfObject1[7] = str2;
      arrayOfObject1[8] = "10225010";
      arrayOfObject1[9] = "9176_0001";
      String str3 = String.format("%sgetattcommentlist.php?gsid=%s&page=%d&pagesize=%d&srcuid=%s&srcid=%s&c=%s&s=%s&from=%s&wm=%s", arrayOfObject1);
      HttpGet localHttpGet = new HttpGet(str3);
      String str4 = execute(localHttpGet);
      Object[] arrayOfObject2 = new Object[2];
      localArrayList = new ArrayList();
      arrayOfObject2[1] = localArrayList;
      localXmlPullParser = Xml.newPullParser();
      StringReader localStringReader = new StringReader(str4);
      localXmlPullParser.setInput(localStringReader);
      while (true)
      {
        int i = localXmlPullParser.next();
        if (i == 1)
          return arrayOfObject2;
        switch (i)
        {
        default:
          break;
        case 2:
          if (!localXmlPullParser.getName().equals("count"))
            break label274;
          String str5 = parseText(localXmlPullParser);
          Integer localInteger3 = new Integer(str5);
          arrayOfObject2[0] = localInteger3;
        }
      }
    }
    catch (NumberFormatException localNumberFormatException)
    {
      while (true)
      {
        ArrayList localArrayList;
        XmlPullParser localXmlPullParser;
        throw new HttpException();
        if (!localXmlPullParser.getName().equals("comment"))
          continue;
        Comment localComment = parseComment(localXmlPullParser);
        boolean bool = localArrayList.add(localComment);
      }
    }
    catch (XmlPullParserException localXmlPullParserException)
    {
      throw new HttpException();
    }
    catch (IOException localIOException)
    {
      label274: throw new HttpException();
    }
    catch (ParseException localParseException)
    {
    }
    throw new HttpException();
  }

  public Object[] getAttentionList(User paramUser, int paramInt1, String paramString1, int paramInt2, String paramString2, int paramInt3, int paramInt4, int paramInt5)
    throws RPCHelper.HttpException
  {
    try
    {
      StringBuilder localStringBuilder1 = new StringBuilder("http://t.sina.cn/interface/f/ttt/v3/");
      StringBuilder localStringBuilder2 = localStringBuilder1.append("attention.php?gsid=");
      String str1 = paramUser.gsid;
      StringBuilder localStringBuilder3 = localStringBuilder2.append(str1);
      StringBuilder localStringBuilder4 = localStringBuilder1.append("&cat=").append(paramInt1);
      if (paramString1 != null)
      {
        StringBuilder localStringBuilder5 = localStringBuilder1.append("&uid=");
        String str2 = paramString1;
        StringBuilder localStringBuilder6 = localStringBuilder5.append(str2);
      }
      StringBuilder localStringBuilder7 = localStringBuilder1.append("&sort=");
      int i = paramInt2;
      StringBuilder localStringBuilder8 = localStringBuilder7.append(i);
      if (paramString2 != null)
      {
        StringBuilder localStringBuilder9 = localStringBuilder1.append("&keyword=");
        String str3 = paramString2;
        StringBuilder localStringBuilder10 = localStringBuilder9.append(str3);
      }
      StringBuilder localStringBuilder11 = localStringBuilder1.append("&lastmblog=");
      int j = paramInt3;
      StringBuilder localStringBuilder12 = localStringBuilder11.append(j);
      StringBuilder localStringBuilder13 = localStringBuilder1.append("&page=");
      int k = paramInt4;
      StringBuilder localStringBuilder14 = localStringBuilder13.append(k);
      StringBuilder localStringBuilder15 = localStringBuilder1.append("&pagesize=");
      int m = paramInt5;
      StringBuilder localStringBuilder16 = localStringBuilder15.append(m);
      StringBuilder localStringBuilder17 = localStringBuilder1.append("&c=").append("meizu_m9");
      StringBuilder localStringBuilder18 = localStringBuilder1.append("&s=");
      String str4 = calculateS(paramUser.uid);
      StringBuilder localStringBuilder19 = localStringBuilder18.append(str4);
      StringBuilder localStringBuilder20 = localStringBuilder1.append("&from=").append("10225010");
      StringBuilder localStringBuilder21 = localStringBuilder1.append("&wm=").append("9176_0001");
      String str5 = localStringBuilder1.toString();
      HttpGet localHttpGet = new HttpGet(str5);
      String str6 = execute(localHttpGet);
      Object[] arrayOfObject = new Object[2];
      localArrayList = new ArrayList();
      arrayOfObject[1] = localArrayList;
      localXmlPullParser = Xml.newPullParser();
      StringReader localStringReader = new StringReader(str6);
      localXmlPullParser.setInput(localStringReader);
      while (true)
      {
        int n = localXmlPullParser.next();
        if (n == 1)
          return arrayOfObject;
        switch (n)
        {
        default:
          break;
        case 2:
          if (!localXmlPullParser.getName().equals("count"))
            break label442;
          String str7 = parseText(localXmlPullParser);
          Integer localInteger = new Integer(str7);
          arrayOfObject[0] = localInteger;
        }
      }
    }
    catch (NumberFormatException localNumberFormatException)
    {
      while (true)
      {
        ArrayList localArrayList;
        XmlPullParser localXmlPullParser;
        throw new HttpException();
        if (!localXmlPullParser.getName().equals("info"))
          continue;
        Fan localFan = parseFan(localXmlPullParser);
        boolean bool = localArrayList.add(localFan);
      }
    }
    catch (XmlPullParserException localXmlPullParserException)
    {
      throw new HttpException();
    }
    catch (IOException localIOException)
    {
      label442: throw new HttpException();
    }
    catch (ParseException localParseException)
    {
    }
    throw new HttpException();
  }

  public Object[] getAuthInfo()
    throws RPCHelper.HttpException
  {
    try
    {
      arrayOfObject1 = new Object[3];
      Object[] arrayOfObject2 = new Object[5];
      arrayOfObject2[0] = "http://t.sina.cn/interface/f/ttt/v3/";
      arrayOfObject2[1] = "meizu_m9";
      arrayOfObject2[2] = "xml";
      arrayOfObject2[3] = "10225010";
      arrayOfObject2[4] = "9176_0001";
      String str1 = String.format("%sget.php?c=%s&o=%s&from=%s&wm=%s", arrayOfObject2);
      HttpGet localHttpGet = new HttpGet(str1);
      String str2 = execute(localHttpGet);
      localXmlPullParser = Xml.newPullParser();
      StringReader localStringReader = new StringReader(str2);
      localXmlPullParser.setInput(localStringReader);
      while (true)
      {
        int i = localXmlPullParser.next();
        if (i == 1)
          return arrayOfObject1;
        switch (i)
        {
        default:
          break;
        case 2:
          if (!localXmlPullParser.getName().equalsIgnoreCase("cpt"))
            break label174;
          String str3 = parseText(localXmlPullParser);
          arrayOfObject1[0] = str3;
        }
      }
    }
    catch (XmlPullParserException localXmlPullParserException)
    {
      while (true)
      {
        throw new HttpException();
        if (!localXmlPullParser.getName().equalsIgnoreCase("pic"))
          break;
        String str4 = parseText(localXmlPullParser);
        arrayOfObject1[1] = str4;
      }
    }
    catch (IOException localIOException)
    {
      while (true)
      {
        Object[] arrayOfObject1;
        XmlPullParser localXmlPullParser;
        label174: throw new HttpException();
        if (!localXmlPullParser.getName().equalsIgnoreCase("q"))
          continue;
        String str5 = parseText(localXmlPullParser);
        arrayOfObject1[2] = str5;
      }
    }
    catch (ParseException localParseException)
    {
    }
    throw new HttpException();
  }

  public Object[] getFavHotWordList(User paramUser, String paramString, int paramInt1, int paramInt2)
    throws RPCHelper.HttpException
  {
    if (paramString != null);
    try
    {
      Object[] arrayOfObject1 = new Object[9];
      arrayOfObject1[0] = "http://t.sina.cn/interface/f/ttt/v3/";
      String str1 = paramUser.gsid;
      arrayOfObject1[1] = str1;
      arrayOfObject1[2] = paramString;
      Integer localInteger1 = Integer.valueOf(paramInt1);
      arrayOfObject1[3] = localInteger1;
      Integer localInteger2 = Integer.valueOf(paramInt2);
      arrayOfObject1[4] = localInteger2;
      arrayOfObject1[5] = "meizu_m9";
      String str2 = calculateS(paramUser.uid);
      arrayOfObject1[6] = str2;
      arrayOfObject1[7] = "10225010";
      arrayOfObject1[8] = "9176_0001";
      String str3 = String.format("%sgetfavhotword.php?gsid=%s&uid=%s&page=%d&pagesize=%d&c=%s&s=%s&from=%s&wm=%s", arrayOfObject1);
      HttpGet localHttpGet = new HttpGet(str3);
      String str4 = execute(localHttpGet);
      Object[] arrayOfObject2 = new Object[2];
      localArrayList = new ArrayList();
      arrayOfObject2[1] = localArrayList;
      localXmlPullParser = Xml.newPullParser();
      StringReader localStringReader = new StringReader(str4);
      localXmlPullParser.setInput(localStringReader);
      while (true)
      {
        int i = localXmlPullParser.next();
        if (i == 1)
        {
          return arrayOfObject2;
          Object[] arrayOfObject3 = new Object[8];
          arrayOfObject3[0] = "http://t.sina.cn/interface/f/ttt/v3/";
          String str5 = paramUser.gsid;
          arrayOfObject3[1] = str5;
          Integer localInteger3 = Integer.valueOf(paramInt1);
          arrayOfObject3[2] = localInteger3;
          Integer localInteger4 = Integer.valueOf(paramInt2);
          arrayOfObject3[3] = localInteger4;
          arrayOfObject3[4] = "meizu_m9";
          String str6 = calculateS(paramUser.uid);
          arrayOfObject3[5] = str6;
          arrayOfObject3[6] = "10225010";
          arrayOfObject3[7] = "9176_0001";
          String str7 = String.format("%sgetfavhotword.php?gsid=%s&page=%d&pagesize=%d&c=%s&s=%s&from=%s&wm=%s", arrayOfObject3);
          localHttpGet = new HttpGet(str7);
          break;
        }
        switch (i)
        {
        default:
          break;
        case 2:
          if (!localXmlPullParser.getName().equals("count"))
            break label382;
          String str8 = parseText(localXmlPullParser);
          Integer localInteger5 = new Integer(str8);
          arrayOfObject2[0] = localInteger5;
        }
      }
    }
    catch (NumberFormatException localNumberFormatException)
    {
      while (true)
      {
        ArrayList localArrayList;
        XmlPullParser localXmlPullParser;
        throw new HttpException();
        if (!localXmlPullParser.getName().equals("favhotword"))
          continue;
        FavHotWord localFavHotWord = parseFavHotWord(localXmlPullParser);
        if (localFavHotWord == null)
          continue;
        boolean bool = localArrayList.add(localFavHotWord);
      }
    }
    catch (XmlPullParserException localXmlPullParserException)
    {
      throw new HttpException();
    }
    catch (IOException localIOException)
    {
      label382: throw new HttpException();
    }
    catch (ParseException localParseException)
    {
    }
    throw new HttpException();
  }

  public Object[] getFavMBlogList(User paramUser, int paramInt1, int paramInt2, int paramInt3)
    throws RPCHelper.HttpException
  {
    Object[] arrayOfObject = new Object[9];
    arrayOfObject[0] = "http://t.sina.cn/interface/f/ttt/v3/";
    String str1 = paramUser.gsid;
    arrayOfObject[1] = str1;
    Integer localInteger1 = Integer.valueOf(paramInt1);
    arrayOfObject[2] = localInteger1;
    Integer localInteger2 = Integer.valueOf(paramInt2);
    arrayOfObject[3] = localInteger2;
    Integer localInteger3 = Integer.valueOf(paramInt3);
    arrayOfObject[4] = localInteger3;
    arrayOfObject[5] = "meizu_m9";
    String str2 = calculateS(paramUser.uid);
    arrayOfObject[6] = str2;
    arrayOfObject[7] = "10225010";
    arrayOfObject[8] = "9176_0001";
    String str3 = String.format("%sgetfavmblog.php?gsid=%s&picsize=%d&page=%d&pagesize=%d&c=%s&s=%s&from=%s&wm=%s", arrayOfObject);
    HttpGet localHttpGet = new HttpGet(str3);
    String str4 = execute(localHttpGet);
    return getMBlogList(str4);
  }

  public String getHomeBlogList(String paramString1, String paramString2, int paramInt1, int paramInt2)
    throws RPCHelper.HttpException
  {
    Object[] arrayOfObject = new Object[8];
    arrayOfObject[0] = "http://t.sina.cn/interface/f/ttt/v3/";
    arrayOfObject[1] = paramString1;
    Integer localInteger1 = Integer.valueOf(paramInt1);
    arrayOfObject[2] = localInteger1;
    Integer localInteger2 = Integer.valueOf(paramInt2);
    arrayOfObject[3] = localInteger2;
    arrayOfObject[4] = "meizu_m9";
    String str1 = calculateS(paramString2);
    arrayOfObject[5] = str1;
    arrayOfObject[6] = "10225010";
    arrayOfObject[7] = "9176_0001";
    String str2 = String.format("%sgettimeline.php?gsid=%s&picsize=%d&pagesize=%d&c=%s&s=%s&from=%s&wm=%s", arrayOfObject);
    HttpGet localHttpGet = new HttpGet(str2);
    return execute(localHttpGet);
  }

  public Object[] getHomeBlogList(User paramUser, int paramInt1, String paramString, int paramInt2)
    throws RPCHelper.HttpException
  {
    String str3;
    if (paramString != null)
    {
      Object[] arrayOfObject1 = new Object[9];
      arrayOfObject1[0] = "http://t.sina.cn/interface/f/ttt/v3/";
      String str1 = paramUser.gsid;
      arrayOfObject1[1] = str1;
      Integer localInteger1 = Integer.valueOf(paramInt1);
      arrayOfObject1[2] = localInteger1;
      arrayOfObject1[3] = paramString;
      Integer localInteger2 = Integer.valueOf(paramInt2);
      arrayOfObject1[4] = localInteger2;
      arrayOfObject1[5] = "meizu_m9";
      String str2 = calculateS(paramUser.uid);
      arrayOfObject1[6] = str2;
      arrayOfObject1[7] = "10225010";
      arrayOfObject1[8] = "9176_0001";
      str3 = String.format("%sgettimeline.php?gsid=%s&picsize=%d&maxid=%s&pagesize=%d&c=%s&s=%s&from=%s&wm=%s", arrayOfObject1);
    }
    String str7;
    for (HttpGet localHttpGet = new HttpGet(str3); ; localHttpGet = new HttpGet(str7))
    {
      String str4 = execute(localHttpGet);
      return getMBlogList(str4);
      Object[] arrayOfObject2 = new Object[8];
      arrayOfObject2[0] = "http://t.sina.cn/interface/f/ttt/v3/";
      String str5 = paramUser.gsid;
      arrayOfObject2[1] = str5;
      Integer localInteger3 = Integer.valueOf(paramInt1);
      arrayOfObject2[2] = localInteger3;
      Integer localInteger4 = Integer.valueOf(paramInt2);
      arrayOfObject2[3] = localInteger4;
      arrayOfObject2[4] = "meizu_m9";
      String str6 = calculateS(paramUser.uid);
      arrayOfObject2[5] = str6;
      arrayOfObject2[6] = "10225010";
      arrayOfObject2[7] = "9176_0001";
      str7 = String.format("%sgettimeline.php?gsid=%s&picsize=%d&pagesize=%d&c=%s&s=%s&from=%s&wm=%s", arrayOfObject2);
    }
  }

  public int[] getMblogCRNum(User paramUser, String[] paramArrayOfString)
    throws RPCHelper.HttpException
  {
    int[] arrayOfInt;
    XmlPullParser localXmlPullParser;
    int i;
    label475: 
    do
      try
      {
        String str1 = String.valueOf(paramUser.uid);
        char[] arrayOfChar = MD5.hexdigest(str1 + "WQnVIAWDBmR9XV86YNAO97P3Xgk21az9").toCharArray();
        StringBuffer localStringBuffer1 = new StringBuffer();
        char c1 = arrayOfChar[1];
        StringBuffer localStringBuffer2 = localStringBuffer1.append(c1);
        char c2 = arrayOfChar[5];
        StringBuffer localStringBuffer3 = localStringBuffer2.append(c2);
        char c3 = arrayOfChar[2];
        StringBuffer localStringBuffer4 = localStringBuffer3.append(c3);
        char c4 = arrayOfChar[10];
        StringBuffer localStringBuffer5 = localStringBuffer4.append(c4);
        char c5 = arrayOfChar[17];
        StringBuffer localStringBuffer6 = localStringBuffer5.append(c5);
        char c6 = arrayOfChar[9];
        StringBuffer localStringBuffer7 = localStringBuffer6.append(c6);
        char c7 = arrayOfChar[25];
        StringBuffer localStringBuffer8 = localStringBuffer7.append(c7);
        char c8 = arrayOfChar[27];
        StringBuffer localStringBuffer9 = localStringBuffer8.append(c8);
        String str2 = "";
        if (paramArrayOfString.length == 1)
        {
          str2 = paramArrayOfString[0];
          Object[] arrayOfObject = new Object[7];
          arrayOfObject[0] = "http://t.sina.cn/interface/f/ttt/v3/";
          String str3 = paramUser.gsid;
          arrayOfObject[1] = str3;
          arrayOfObject[2] = str2;
          arrayOfObject[3] = "meizu_m9";
          arrayOfObject[4] = localStringBuffer9;
          arrayOfObject[5] = "10225010";
          arrayOfObject[6] = "9176_0001";
          String str4 = String.format("%sgetmblogcrnum.php?gsid=%s&id=%s&c=%s&s=%s&from=%s&wm=", arrayOfObject);
          HttpGet localHttpGet = new HttpGet(str4);
          arrayOfInt = new int[4];
          localXmlPullParser = Xml.newPullParser();
          String str5 = execute(localHttpGet);
          StringReader localStringReader = new StringReader(str5);
          localXmlPullParser.setInput(localStringReader);
          if (paramArrayOfString.length != 1)
            continue;
        }
        while (true)
        {
          i = localXmlPullParser.next();
          if (i == 1)
          {
            return arrayOfInt;
            if (paramArrayOfString.length != 2)
              break;
            String str6 = String.valueOf(paramArrayOfString[0]);
            StringBuilder localStringBuilder = new StringBuilder(str6).append(",");
            String str7 = paramArrayOfString[1];
            str2 = str7;
            break;
          }
          switch (i)
          {
          default:
            break;
          case 2:
            bool = localXmlPullParser.getName().equals("rtnum");
            if (!bool)
              break label475;
            j = 0;
            try
            {
              int k = Integer.parseInt(localXmlPullParser.nextText());
              arrayOfInt[j] = k;
            }
            catch (Exception localException1)
            {
              j = 0;
              m = -1;
              arrayOfInt[j] = m;
            }
          }
        }
      }
      catch (XmlPullParserException localXmlPullParserException)
      {
        while (true)
        {
          int m;
          throw new HttpException();
          boolean bool = localXmlPullParser.getName().equals("commentnum");
          if (!bool)
            continue;
          int j = 1;
          try
          {
            int n = Integer.parseInt(localXmlPullParser.nextText());
            arrayOfInt[j] = n;
          }
          catch (Exception localException2)
          {
            j = 1;
            m = -1;
            arrayOfInt[j] = m;
          }
        }
      }
      catch (IOException localIOException)
      {
        throw new HttpException();
      }
    while (paramArrayOfString.length != 2);
    String str8 = "";
    while (true)
    {
      i = localXmlPullParser.next();
      if (i == 1)
        break;
      switch (i)
      {
      default:
        break;
      case 2:
        String str9 = localXmlPullParser.getName();
        if ("mblogid".equals(str9))
        {
          str8 = localXmlPullParser.nextText();
          continue;
        }
        String str10 = localXmlPullParser.getName();
        if ("rtnum".equals(str10))
        {
          String str11 = paramArrayOfString[0];
          if (str8.equals(str11))
          {
            int i1 = Integer.parseInt(localXmlPullParser.nextText());
            arrayOfInt[0] = i1;
            continue;
          }
          String str12 = paramArrayOfString[1];
          if (!str8.equals(str12))
            continue;
          int i2 = Integer.parseInt(localXmlPullParser.nextText());
          arrayOfInt[2] = i2;
          continue;
        }
        String str13 = localXmlPullParser.getName();
        if (!"commentnum".equals(str13))
          continue;
        String str14 = paramArrayOfString[0];
        if (str8.equals(str14))
        {
          int i3 = Integer.parseInt(localXmlPullParser.nextText());
          arrayOfInt[1] = i3;
          continue;
        }
        String str15 = paramArrayOfString[1];
        if (!str8.equals(str15))
          continue;
        int i4 = Integer.parseInt(localXmlPullParser.nextText());
        arrayOfInt[3] = i4;
      }
    }
  }

  public Object[] getMessageList(User paramUser, String paramString, int paramInt1, int paramInt2)
    throws RPCHelper.HttpException
  {
    if (paramString == null);
    try
    {
      Object[] arrayOfObject1 = new Object[8];
      arrayOfObject1[0] = "http://t.sina.cn/interface/f/ttt/v3/";
      String str1 = paramUser.gsid;
      arrayOfObject1[1] = str1;
      Integer localInteger1 = Integer.valueOf(paramInt1);
      arrayOfObject1[2] = localInteger1;
      Integer localInteger2 = Integer.valueOf(paramInt2);
      arrayOfObject1[3] = localInteger2;
      arrayOfObject1[4] = "meizu_m9";
      String str2 = calculateS(paramUser.uid);
      arrayOfObject1[5] = str2;
      arrayOfObject1[6] = "10225010";
      arrayOfObject1[7] = "9176_0001";
      String str3 = String.format("%smsg.php?gsid=%s&act=1&page=%d&pagesize=%d&c=%s&s=%s&from=%s&wm=%s", arrayOfObject1);
      HttpGet localHttpGet = new HttpGet(str3);
      String str4 = execute(localHttpGet);
      Object[] arrayOfObject2 = new Object[2];
      localArrayList = new ArrayList();
      arrayOfObject2[1] = localArrayList;
      localXmlPullParser = Xml.newPullParser();
      StringReader localStringReader = new StringReader(str4);
      localXmlPullParser.setInput(localStringReader);
      while (true)
      {
        int i = localXmlPullParser.next();
        if (i == 1)
        {
          return arrayOfObject2;
          Object[] arrayOfObject3 = new Object[9];
          arrayOfObject3[0] = "http://t.sina.cn/interface/f/ttt/v3/";
          String str5 = paramUser.gsid;
          arrayOfObject3[1] = str5;
          arrayOfObject3[2] = paramString;
          Integer localInteger3 = Integer.valueOf(paramInt1);
          arrayOfObject3[3] = localInteger3;
          Integer localInteger4 = Integer.valueOf(paramInt2);
          arrayOfObject3[4] = localInteger4;
          arrayOfObject3[5] = "meizu_m9";
          String str6 = calculateS(paramUser.uid);
          arrayOfObject3[6] = str6;
          arrayOfObject3[7] = "10225010";
          arrayOfObject3[8] = "9176_0001";
          String str7 = String.format("%smsg.php?gsid=%s&act=1&uid=%s&page=%d&pagesize=%d&c=%s&s=%s&from=%s&wm=%s", arrayOfObject3);
          localHttpGet = new HttpGet(str7);
          break;
        }
        switch (i)
        {
        default:
          break;
        case 2:
          if (!localXmlPullParser.getName().equals("count"))
            break label382;
          String str8 = parseText(localXmlPullParser);
          Integer localInteger5 = new Integer(str8);
          arrayOfObject2[0] = localInteger5;
        }
      }
    }
    catch (NumberFormatException localNumberFormatException)
    {
      while (true)
      {
        ArrayList localArrayList;
        XmlPullParser localXmlPullParser;
        throw new HttpException();
        if (!localXmlPullParser.getName().equals("msg"))
          continue;
        Message localMessage = parseMessage(localXmlPullParser);
        boolean bool = localArrayList.add(localMessage);
      }
    }
    catch (XmlPullParserException localXmlPullParserException)
    {
      throw new HttpException();
    }
    catch (IOException localIOException)
    {
      label382: throw new HttpException();
    }
    catch (ParseException localParseException)
    {
    }
    throw new HttpException();
  }

  public Object[] getMyCommentList(User paramUser, int paramInt1, int paramInt2, int paramInt3)
    throws RPCHelper.HttpException
  {
    try
    {
      Object[] arrayOfObject1 = new Object[9];
      arrayOfObject1[0] = "http://t.sina.cn/interface/f/ttt/v3/";
      String str1 = paramUser.gsid;
      arrayOfObject1[1] = str1;
      Integer localInteger1 = Integer.valueOf(paramInt1);
      arrayOfObject1[2] = localInteger1;
      Integer localInteger2 = Integer.valueOf(paramInt2);
      arrayOfObject1[3] = localInteger2;
      Integer localInteger3 = Integer.valueOf(paramInt3);
      arrayOfObject1[4] = localInteger3;
      arrayOfObject1[5] = "meizu_m9";
      String str2 = calculateS(paramUser.uid);
      arrayOfObject1[6] = str2;
      arrayOfObject1[7] = "10225010";
      arrayOfObject1[8] = "9176_0001";
      String str3 = String.format("%sgetmycomment.php?gsid=%s&type=%d&page=%d&pagesize=%d&c=%s&s=%s&from=%s&wm=%s", arrayOfObject1);
      HttpGet localHttpGet = new HttpGet(str3);
      String str4 = execute(localHttpGet);
      Object[] arrayOfObject2 = new Object[2];
      localArrayList = new ArrayList();
      arrayOfObject2[1] = localArrayList;
      localXmlPullParser = Xml.newPullParser();
      StringReader localStringReader = new StringReader(str4);
      localXmlPullParser.setInput(localStringReader);
      while (true)
      {
        int i = localXmlPullParser.next();
        if (i == 1)
          return arrayOfObject2;
        switch (i)
        {
        default:
          break;
        case 2:
          if (!localXmlPullParser.getName().equals("count"))
            break label274;
          String str5 = parseText(localXmlPullParser);
          Integer localInteger4 = new Integer(str5);
          arrayOfObject2[0] = localInteger4;
        }
      }
    }
    catch (NumberFormatException localNumberFormatException)
    {
      while (true)
      {
        ArrayList localArrayList;
        XmlPullParser localXmlPullParser;
        throw new HttpException();
        if (!localXmlPullParser.getName().equals("msg"))
          continue;
        CommentMessage localCommentMessage = parseCommentMessage(localXmlPullParser);
        boolean bool = localArrayList.add(localCommentMessage);
      }
    }
    catch (XmlPullParserException localXmlPullParserException)
    {
      throw new HttpException();
    }
    catch (IOException localIOException)
    {
      label274: throw new HttpException();
    }
    catch (ParseException localParseException)
    {
    }
    throw new HttpException();
  }

  public Object[] getNewsList(String paramString1, String paramString2, int paramInt1, int paramInt2, int paramInt3)
    throws RPCHelper.HttpException
  {
    Object[] arrayOfObject = new Object[9];
    arrayOfObject[0] = "http://t.sina.cn/interface/f/ttt/v3/";
    arrayOfObject[1] = paramString2;
    Integer localInteger1 = Integer.valueOf(paramInt1);
    arrayOfObject[2] = localInteger1;
    Integer localInteger2 = Integer.valueOf(paramInt2);
    arrayOfObject[3] = localInteger2;
    Integer localInteger3 = Integer.valueOf(paramInt3);
    arrayOfObject[4] = localInteger3;
    arrayOfObject[5] = "meizu_m9";
    String str1 = calculateS(paramString1);
    arrayOfObject[6] = str1;
    arrayOfObject[7] = "10225010";
    arrayOfObject[8] = "9176_0001";
    String str2 = String.format("%sgetnewslist.php?cat=%s&picsize=%d&page=%d&pagesize=%d&c=%s&s=%s&from=%s&wm=%s", arrayOfObject);
    HttpGet localHttpGet = new HttpGet(str2);
    String str3 = execute(localHttpGet);
    return getMBlogList(str3);
  }

  public String getPicture(String paramString1, String paramString2)
    throws RPCHelper.HttpException
  {
    String str1 = MD5.hexdigest(paramString1);
    String str2 = String.valueOf(paramString2);
    String str3 = str2 + "/" + str1;
    if (new File(str3).exists())
      return str3;
    HttpGet localHttpGet1 = new org/apache/http/client/methods/HttpGet;
    HttpGet localHttpGet2 = localHttpGet1;
    String str4 = paramString1;
    localHttpGet2.<init>(str4);
    HttpClient localHttpClient = getHttpClient();
    String str5 = "User-Agent";
    if (WeiboApplication.UA == null);
    HttpResponse localHttpResponse;
    for (String str6 = "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.4) Gecko/20091111 Gentoo Firefox/3.5.4"; ; str6 = WeiboApplication.UA)
    {
      localHttpGet1.setHeader(str5, str6);
      try
      {
        localHttpResponse = localHttpClient.execute(localHttpGet1);
        StatusLine localStatusLine = localHttpResponse.getStatusLine();
        if (localStatusLine.getStatusCode() == 200)
          break;
        Object[] arrayOfObject = new Object[1];
        String str7 = localStatusLine.toString();
        arrayOfObject[0] = str7;
        String str8 = String.format("Invalid response from server: %s", arrayOfObject);
        throw new HttpException();
      }
      catch (IOException localIOException1)
      {
        if (localHttpClient != null)
          localHttpClient.getConnectionManager().shutdown();
        throw new HttpException(localIOException1);
      }
    }
    InputStream localInputStream1 = localHttpResponse.getEntity().getContent();
    InputStream localInputStream2 = localInputStream1;
    while (true)
    {
      FileOutputStream localFileOutputStream;
      int i;
      try
      {
        localFileOutputStream = new FileOutputStream(str3);
        byte[] arrayOfByte1 = sBuffer;
        i = localInputStream2.read(arrayOfByte1);
        if (i == -1)
        {
          localFileOutputStream.close();
          localHttpClient.getConnectionManager().shutdown();
        }
      }
      catch (IOException localIOException2)
      {
        localHttpClient.getConnectionManager().shutdown();
        String str9 = UNKNOWN_ERROR;
        throw new HttpException(localIOException2);
      }
      byte[] arrayOfByte2 = sBuffer;
      localFileOutputStream.write(arrayOfByte2, 0, i);
      localFileOutputStream.flush();
    }
  }

  public String getPicture(String paramString1, String paramString2, boolean paramBoolean)
    throws RPCHelper.HttpException
  {
    String str1 = MD5.hexdigest(paramString1);
    String str2 = String.valueOf(paramString2);
    String str3 = str2 + "/" + str1;
    if ((!paramBoolean) && (new File(str3).exists()))
      return str3;
    HttpGet localHttpGet1 = new org/apache/http/client/methods/HttpGet;
    HttpGet localHttpGet2 = localHttpGet1;
    String str4 = paramString1;
    localHttpGet2.<init>(str4);
    HttpClient localHttpClient = getHttpClient();
    String str5 = "User-Agent";
    if (WeiboApplication.UA == null);
    HttpResponse localHttpResponse;
    for (String str6 = "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.4) Gecko/20091111 Gentoo Firefox/3.5.4"; ; str6 = WeiboApplication.UA)
    {
      localHttpGet1.setHeader(str5, str6);
      try
      {
        localHttpResponse = localHttpClient.execute(localHttpGet1);
        StatusLine localStatusLine = localHttpResponse.getStatusLine();
        if (localStatusLine.getStatusCode() == 200)
          break;
        Object[] arrayOfObject = new Object[1];
        String str7 = localStatusLine.toString();
        arrayOfObject[0] = str7;
        String str8 = String.format("Invalid response from server: %s", arrayOfObject);
        throw new HttpException();
      }
      catch (IOException localIOException1)
      {
        if (localHttpClient != null)
          localHttpClient.getConnectionManager().shutdown();
        throw new HttpException(localIOException1);
      }
    }
    InputStream localInputStream1 = localHttpResponse.getEntity().getContent();
    InputStream localInputStream2 = localInputStream1;
    while (true)
    {
      FileOutputStream localFileOutputStream;
      int i;
      try
      {
        localFileOutputStream = new FileOutputStream(str3);
        byte[] arrayOfByte1 = sBuffer;
        i = localInputStream2.read(arrayOfByte1);
        if (i == -1)
        {
          localFileOutputStream.close();
          localHttpClient.getConnectionManager().shutdown();
        }
      }
      catch (IOException localIOException2)
      {
        String str9 = UNKNOWN_ERROR;
        throw new HttpException(localIOException2);
      }
      byte[] arrayOfByte2 = sBuffer;
      localFileOutputStream.write(arrayOfByte2, 0, i);
      localFileOutputStream.flush();
    }
  }

  public byte[] getPictureByte(String paramString)
    throws RPCHelper.HttpException
  {
    HttpGet localHttpGet1 = new org/apache/http/client/methods/HttpGet;
    HttpGet localHttpGet2 = localHttpGet1;
    String str1 = paramString;
    localHttpGet2.<init>(str1);
    HttpClient localHttpClient = getHttpClient();
    if (WeiboApplication.UA == null);
    HttpResponse localHttpResponse;
    for (String str2 = "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.4) Gecko/20091111 Gentoo Firefox/3.5.4"; ; str2 = WeiboApplication.UA)
    {
      localHttpGet1.setHeader("User-Agent", str2);
      try
      {
        localHttpResponse = localHttpClient.execute(localHttpGet1);
        StatusLine localStatusLine = localHttpResponse.getStatusLine();
        if (localStatusLine.getStatusCode() == 200)
          break;
        Object[] arrayOfObject = new Object[1];
        String str3 = localStatusLine.toString();
        arrayOfObject[0] = str3;
        String str4 = String.format("Invalid response from server: %s", arrayOfObject);
        throw new HttpException();
      }
      catch (IOException localIOException1)
      {
        if (localHttpClient != null)
          localHttpClient.getConnectionManager().shutdown();
        throw new HttpException(localIOException1);
      }
    }
    InputStream localInputStream1 = localHttpResponse.getEntity().getContent();
    InputStream localInputStream2 = localInputStream1;
    String str5;
    try
    {
      ByteArrayOutputStream localByteArrayOutputStream = new ByteArrayOutputStream();
      while (true)
      {
        byte[] arrayOfByte1 = sBuffer;
        int i = localInputStream2.read(arrayOfByte1);
        if (i == -1)
        {
          byte[] arrayOfByte2 = localByteArrayOutputStream.toByteArray();
          localByteArrayOutputStream.close();
          localHttpClient.getConnectionManager().shutdown();
          return arrayOfByte2;
        }
        byte[] arrayOfByte3 = sBuffer;
        localByteArrayOutputStream.write(arrayOfByte3, 0, i);
        localByteArrayOutputStream.flush();
      }
    }
    catch (IOException localIOException2)
    {
      localHttpClient.getConnectionManager().shutdown();
      str5 = UNKNOWN_ERROR;
    }
    throw new HttpException(localIOException2);
  }

  public Object[] getSingleMBlog(User paramUser, String paramString, int paramInt)
    throws RPCHelper.HttpException
  {
    Object[] arrayOfObject1 = new Object[8];
    arrayOfObject1[0] = "http://t.sina.cn/interface/f/ttt/v3/";
    String str1 = paramUser.gsid;
    arrayOfObject1[1] = str1;
    arrayOfObject1[2] = paramString;
    Integer localInteger = Integer.valueOf(paramInt);
    arrayOfObject1[3] = localInteger;
    arrayOfObject1[4] = "meizu_m9";
    String str2 = calculateS(paramUser.uid);
    arrayOfObject1[5] = str2;
    arrayOfObject1[6] = "10225010";
    arrayOfObject1[7] = "9176_0001";
    String str3 = String.format("%sgetsinglemblog.php?gsid=%s&mid=%s&picsize=%d&c=%s&s=%s&from=%s&wm=%s", arrayOfObject1);
    HttpGet localHttpGet = new HttpGet(str3);
    String str4 = execute(localHttpGet);
    Object[] arrayOfObject2 = getMBlogList(str4);
    if (((List)arrayOfObject2[1]).size() > 0)
    {
      Object localObject = ((List)arrayOfObject2[1]).get(0);
      arrayOfObject2[1] = localObject;
    }
    return arrayOfObject2;
  }

  public Object[] getTimelineList(String paramString1, String paramString2, String paramString3, String paramString4, int paramInt1, int paramInt2, int paramInt3)
    throws RPCHelper.HttpException
  {
    StringBuilder localStringBuilder1 = new StringBuilder("http://t.sina.cn/interface/f/ttt/v3/");
    StringBuilder localStringBuilder2 = localStringBuilder1.append("gettimeline.php?gsid=").append(paramString1);
    if (paramString3 != null)
      StringBuilder localStringBuilder3 = localStringBuilder1.append("&maxid=").append(paramString3);
    if (paramString4 != null)
      StringBuilder localStringBuilder4 = localStringBuilder1.append("&minid=").append(paramString4);
    StringBuilder localStringBuilder5 = localStringBuilder1.append("&picsize=").append(paramInt1);
    StringBuilder localStringBuilder6 = localStringBuilder1.append("&page=").append(paramInt2);
    StringBuilder localStringBuilder7 = localStringBuilder1.append("&pagesize=").append(paramInt3);
    StringBuilder localStringBuilder8 = localStringBuilder1.append("&c=").append("meizu_m9");
    StringBuilder localStringBuilder9 = localStringBuilder1.append("&s=");
    String str1 = calculateS(paramString2);
    StringBuilder localStringBuilder10 = localStringBuilder9.append(str1);
    StringBuilder localStringBuilder11 = localStringBuilder1.append("&from=").append("10225010");
    StringBuilder localStringBuilder12 = localStringBuilder1.append("&wm=").append("9176_0001");
    String str2 = localStringBuilder1.toString();
    HttpGet localHttpGet = new HttpGet(str2);
    String str3 = execute(localHttpGet);
    return getMBlogList(str3);
  }

  public Object[] getTopUserList(String paramString, int paramInt)
    throws RPCHelper.HttpException
  {
    Object[] arrayOfObject = new Object[6];
    arrayOfObject[0] = "http://t.sina.cn/interface/f/ttt/v3/";
    Integer localInteger = Integer.valueOf(paramInt);
    arrayOfObject[1] = localInteger;
    arrayOfObject[2] = "meizu_m9";
    String str1 = calculateS(paramString);
    arrayOfObject[3] = str1;
    arrayOfObject[4] = "10225010";
    arrayOfObject[5] = "9176_0001";
    String str2 = String.format("%sgettopuser.php?pagesize=%d&c=%s&s=%s&from=%s&wm=%s", arrayOfObject);
    HttpGet localHttpGet = new HttpGet(str2);
    return getUserInfoList(localHttpGet);
  }

  public UnreadNum getUnreadNum(User paramUser)
    throws RPCHelper.HttpException
  {
    while (true)
    {
      UnreadNum localUnreadNum;
      XmlPullParser localXmlPullParser;
      try
      {
        Object[] arrayOfObject = new Object[6];
        arrayOfObject[0] = "http://t.sina.cn/interface/f/ttt/v3/";
        String str1 = paramUser.gsid;
        arrayOfObject[1] = str1;
        arrayOfObject[2] = "meizu_m9";
        String str2 = calculateS(paramUser.uid);
        arrayOfObject[3] = str2;
        arrayOfObject[4] = "10225010";
        arrayOfObject[5] = "9176_0001";
        String str3 = String.format("%sgetunreadnum.php?gsid=%s&c=%s&s=%s&from=%s&wm=%s", arrayOfObject);
        HttpGet localHttpGet = new HttpGet(str3);
        String str4 = execute(localHttpGet);
        localUnreadNum = new UnreadNum();
        localXmlPullParser = Xml.newPullParser();
        StringReader localStringReader = new StringReader(str4);
        localXmlPullParser.setInput(localStringReader);
        int i = localXmlPullParser.next();
        if (i == 1)
          return localUnreadNum;
        switch (i)
        {
        default:
          break;
        case 2:
          if (!localXmlPullParser.getName().equals("comment"))
            continue;
          int j = Integer.parseInt(parseText(localXmlPullParser));
          localUnreadNum.comment = j;
          continue;
        }
      }
      catch (NumberFormatException localNumberFormatException)
      {
        throw new HttpException();
        if (!localXmlPullParser.getName().equals("newfans"))
          continue;
        int k = Integer.parseInt(parseText(localXmlPullParser));
        localUnreadNum.newfans = k;
        continue;
      }
      catch (XmlPullParserException localXmlPullParserException)
      {
        throw new HttpException();
        if (!localXmlPullParser.getName().equals("message"))
          continue;
        int m = Integer.parseInt(parseText(localXmlPullParser));
        localUnreadNum.message = m;
        continue;
      }
      catch (IOException localIOException)
      {
        throw new HttpException();
        if (localXmlPullParser.getName().equals("atmsg"))
        {
          int n = Integer.parseInt(parseText(localXmlPullParser));
          localUnreadNum.atmsg = n;
          continue;
        }
      }
      catch (ParseException localParseException)
      {
        throw new HttpException();
      }
      if (localXmlPullParser.getName().equals("mblog"))
      {
        if (parseText(localXmlPullParser).equals("1"));
        for (int i1 = 1; ; i1 = 0)
        {
          localUnreadNum.newmblog = i1;
          break;
        }
      }
      if (!localXmlPullParser.getName().equals("newmblog"))
        continue;
      int i2 = Integer.parseInt(parseText(localXmlPullParser));
      localUnreadNum.mblog = i2;
    }
  }

  public UserInfo getUserInfo(User paramUser, String paramString1, String paramString2)
    throws RPCHelper.HttpException
  {
    try
    {
      StringBuilder localStringBuilder1 = new StringBuilder("http://t.sina.cn/interface/f/ttt/v3/");
      StringBuilder localStringBuilder2 = localStringBuilder1.append("getuserinfo.php?gsid=");
      String str1 = paramUser.gsid;
      StringBuilder localStringBuilder3 = localStringBuilder2.append(str1);
      if (paramString1 != null)
        StringBuilder localStringBuilder4 = localStringBuilder1.append("&uid=").append(paramString1);
      while (true)
      {
        StringBuilder localStringBuilder5 = localStringBuilder1.append("&c=").append("meizu_m9");
        StringBuilder localStringBuilder6 = localStringBuilder1.append("&s=");
        String str2 = calculateS(paramUser.uid);
        StringBuilder localStringBuilder7 = localStringBuilder6.append(str2);
        StringBuilder localStringBuilder8 = localStringBuilder1.append("&from=").append("10225010");
        StringBuilder localStringBuilder9 = localStringBuilder1.append("&wm=").append("9176_0001");
        String str3 = localStringBuilder1.toString();
        HttpGet localHttpGet = new HttpGet(str3);
        String str4 = execute(localHttpGet);
        XmlPullParser localXmlPullParser = Xml.newPullParser();
        StringReader localStringReader = new StringReader(str4);
        localXmlPullParser.setInput(localStringReader);
        return parseUserInfo(localXmlPullParser);
        if (paramString2 == null)
          continue;
        StringBuilder localStringBuilder10 = localStringBuilder1.append("&nick=").append(paramString2);
      }
    }
    catch (XmlPullParserException localXmlPullParserException)
    {
      throw new HttpException();
    }
    catch (ParseException localParseException)
    {
    }
    throw new HttpException();
  }

  public Object[] getUserMBlogList(User paramUser, String paramString, int paramInt1, int paramInt2, int paramInt3)
    throws RPCHelper.HttpException
  {
    Object[] arrayOfObject = new Object[10];
    arrayOfObject[0] = "http://t.sina.cn/interface/f/ttt/v3/";
    String str1 = paramUser.gsid;
    arrayOfObject[1] = str1;
    arrayOfObject[2] = paramString;
    Integer localInteger1 = Integer.valueOf(paramInt1);
    arrayOfObject[3] = localInteger1;
    Integer localInteger2 = Integer.valueOf(paramInt2);
    arrayOfObject[4] = localInteger2;
    Integer localInteger3 = Integer.valueOf(paramInt3);
    arrayOfObject[5] = localInteger3;
    arrayOfObject[6] = "meizu_m9";
    String str2 = calculateS(paramUser.uid);
    arrayOfObject[7] = str2;
    arrayOfObject[8] = "10225010";
    arrayOfObject[9] = "9176_0001";
    String str3 = String.format("%sgetusermbloglist.php?gsid=%s&uid=%s&picsize=%d&page=%d&pagesize=%d&c=%s&s=%s&from=%s&wm=%s", arrayOfObject);
    HttpGet localHttpGet = new HttpGet(str3);
    String str4 = execute(localHttpGet);
    return getMBlogList(str4);
  }

  public Object[] getUserRankList(User paramUser, int paramInt1, int paramInt2, int paramInt3)
    throws RPCHelper.HttpException
  {
    try
    {
      Object[] arrayOfObject1 = new Object[2];
      localArrayList = new ArrayList();
      arrayOfObject1[1] = localArrayList;
      Object[] arrayOfObject2 = new Object[9];
      arrayOfObject2[0] = "http://t.sina.cn/interface/f/ttt/v3/";
      String str1 = paramUser.gsid;
      arrayOfObject2[1] = str1;
      arrayOfObject2[2] = "meizu_m9";
      String str2 = calculateS(paramUser.uid);
      arrayOfObject2[3] = str2;
      arrayOfObject2[4] = "10225010";
      Integer localInteger1 = Integer.valueOf(paramInt2);
      arrayOfObject2[5] = localInteger1;
      Integer localInteger2 = Integer.valueOf(paramInt3);
      arrayOfObject2[6] = localInteger2;
      Integer localInteger3 = Integer.valueOf(paramInt1);
      arrayOfObject2[7] = localInteger3;
      arrayOfObject2[8] = "9176_0001";
      String str3 = String.format("%sgetuserrank.php?gsid=%s&c=%s&s=%s&from=%s&page=%d&pagesize=%d&cat=%d&wm=%s", arrayOfObject2);
      HttpGet localHttpGet = new HttpGet(str3);
      String str4 = execute(localHttpGet);
      localXmlPullParser = Xml.newPullParser();
      StringReader localStringReader = new StringReader(str4);
      localXmlPullParser.setInput(localStringReader);
      while (true)
      {
        int i = localXmlPullParser.next();
        if (i == 1)
          return arrayOfObject1;
        switch (i)
        {
        default:
          break;
        case 2:
          if (!localXmlPullParser.getName().equals("count"))
            break label274;
          String str5 = parseText(localXmlPullParser);
          Integer localInteger4 = new Integer(str5);
          arrayOfObject1[0] = localInteger4;
        }
      }
    }
    catch (NumberFormatException localNumberFormatException)
    {
      while (true)
      {
        ArrayList localArrayList;
        XmlPullParser localXmlPullParser;
        throw new HttpException();
        if (!localXmlPullParser.getName().equals("info"))
          continue;
        UserRankItem localUserRankItem = parseUserRank(localXmlPullParser);
        boolean bool = localArrayList.add(localUserRankItem);
      }
    }
    catch (XmlPullParserException localXmlPullParserException)
    {
      throw new HttpException();
    }
    catch (IOException localIOException)
    {
      label274: throw new HttpException();
    }
    catch (ParseException localParseException)
    {
    }
    throw new HttpException();
  }

  public boolean log()
  {
    Object[] arrayOfObject = new Object[4];
    arrayOfObject[0] = "http://t.sina.cn/interface/f/ttt/v3/";
    String str1 = WeiboApplication.IMEI_NUM;
    arrayOfObject[1] = str1;
    arrayOfObject[2] = "10225010";
    arrayOfObject[3] = "9176_0001";
    String str2 = String.format("%slog.php?imei=%s&from=%s&wm=%s", arrayOfObject);
    HttpGet localHttpGet = new HttpGet(str2);
    try
    {
      String str3 = execute(localHttpGet);
      i = 1;
      return i;
    }
    catch (HttpException localHttpException)
    {
      while (true)
        int i = 0;
    }
  }

  public User login(String paramString1, String paramString2)
    throws RPCHelper.HttpException
  {
    while (true)
    {
      User localUser;
      XmlPullParser localXmlPullParser;
      try
      {
        String str1 = getLoginResponseContent(paramString1, paramString2);
        localUser = new User();
        localXmlPullParser = Xml.newPullParser();
        StringReader localStringReader = new StringReader(str1);
        localXmlPullParser.setInput(localStringReader);
        int i = localXmlPullParser.next();
        if (i == 1)
          return localUser;
        switch (i)
        {
        default:
          break;
        case 2:
          if (!localXmlPullParser.getName().equals("gsid"))
            continue;
          String str2 = parseText(localXmlPullParser);
          localUser.gsid = str2;
          continue;
        }
      }
      catch (NumberFormatException localNumberFormatException)
      {
        throw new HttpException();
        if (!localXmlPullParser.getName().equals("status"))
          continue;
        int j = Integer.parseInt(parseText(localXmlPullParser));
        localUser.status = j;
        continue;
      }
      catch (XmlPullParserException localXmlPullParserException)
      {
        throw new HttpException();
        if (!localXmlPullParser.getName().equals("uid"))
          continue;
        String str3 = parseText(localXmlPullParser);
        localUser.uid = str3;
        continue;
      }
      catch (IOException localIOException)
      {
        throw new HttpException();
        if (localXmlPullParser.getName().equals("nick"))
        {
          String str4 = parseText(localXmlPullParser);
          localUser.nick = str4;
          continue;
        }
      }
      catch (ParseException localParseException)
      {
        throw new HttpException();
      }
      if (localXmlPullParser.getName().equals("url"))
      {
        String str5 = parseText(localXmlPullParser);
        localUser.url = str5;
        continue;
      }
      if (!localXmlPullParser.getName().equals("msgurl"))
        continue;
      String str6 = parseText(localXmlPullParser);
      localUser.msgurl = str6;
    }
  }

  // ERROR //
  public boolean postNewMBlog(String paramString1, String paramString2, String paramString3, double paramDouble1, double paramDouble2, String paramString4, boolean paramBoolean)
    throws RPCHelper.HttpException
  {
    // Byte code:
    //   0: sipush 4096
    //   3: newarray byte
    //   5: astore 10
    //   7: ldc_w 1141
    //   10: astore 11
    //   12: ldc_w 1143
    //   15: astore 12
    //   17: new 1145	java/net/URL
    //   20: astore 13
    //   22: iconst_5
    //   23: anewarray 4	java/lang/Object
    //   26: astore 14
    //   28: aload 14
    //   30: iconst_0
    //   31: ldc_w 329
    //   34: aastore
    //   35: aload 14
    //   37: iconst_1
    //   38: aload_1
    //   39: aastore
    //   40: aload 14
    //   42: iconst_2
    //   43: ldc_w 333
    //   46: aastore
    //   47: aload 14
    //   49: iconst_3
    //   50: ldc_w 331
    //   53: aastore
    //   54: aload 14
    //   56: iconst_4
    //   57: ldc_w 316
    //   60: aastore
    //   61: ldc_w 1147
    //   64: aload 14
    //   66: invokestatic 134	java/lang/String:format	(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
    //   69: astore 15
    //   71: aload 13
    //   73: astore 16
    //   75: aload 15
    //   77: astore 17
    //   79: aload 16
    //   81: aload 17
    //   83: invokespecial 1148	java/net/URL:<init>	(Ljava/lang/String;)V
    //   86: aload_0
    //   87: getfield 44	com/sina/weibo/RPCHelper:mContext	Landroid/content/Context;
    //   90: invokestatic 218	com/sina/weibo/NetworkUtil:getNetworkState	(Landroid/content/Context;)Lcom/sina/weibo/NetworkUtil$NetworkState;
    //   93: astore 18
    //   95: getstatic 227	com/sina/weibo/NetworkUtil$NetworkState:NOTHING	Lcom/sina/weibo/NetworkUtil$NetworkState;
    //   98: astore 19
    //   100: aload 18
    //   102: astore 20
    //   104: aload 19
    //   106: astore 21
    //   108: aload 20
    //   110: aload 21
    //   112: if_icmpne +47 -> 159
    //   115: new 12	com/sina/weibo/RPCHelper$NoSignalException
    //   118: dup
    //   119: invokespecial 228	com/sina/weibo/RPCHelper$NoSignalException:<init>	()V
    //   122: astore 22
    //   124: new 9	com/sina/weibo/RPCHelper$HttpException
    //   127: dup
    //   128: aload 22
    //   130: invokespecial 138	com/sina/weibo/RPCHelper$HttpException:<init>	(Ljava/lang/Throwable;)V
    //   133: athrow
    //   134: astore 23
    //   136: new 9	com/sina/weibo/RPCHelper$HttpException
    //   139: astore 24
    //   141: aload 24
    //   143: astore 25
    //   145: aload 23
    //   147: astore 26
    //   149: aload 25
    //   151: aload 26
    //   153: invokespecial 138	com/sina/weibo/RPCHelper$HttpException:<init>	(Ljava/lang/Throwable;)V
    //   156: aload 24
    //   158: athrow
    //   159: getstatic 231	com/sina/weibo/NetworkUtil$NetworkState:MOBILE	Lcom/sina/weibo/NetworkUtil$NetworkState;
    //   162: astore 27
    //   164: aload 18
    //   166: astore 28
    //   168: aload 27
    //   170: astore 29
    //   172: aload 28
    //   174: aload 29
    //   176: if_icmpne +1614 -> 1790
    //   179: aload_0
    //   180: getfield 44	com/sina/weibo/RPCHelper:mContext	Landroid/content/Context;
    //   183: invokestatic 235	com/sina/weibo/NetworkUtil:getAPN	(Landroid/content/Context;)Lcom/sina/weibo/NetworkUtil$APNWrapper;
    //   186: astore 30
    //   188: aload 30
    //   190: getfield 240	com/sina/weibo/NetworkUtil$APNWrapper:proxy	Ljava/lang/String;
    //   193: invokestatic 246	android/text/TextUtils:isEmpty	(Ljava/lang/CharSequence;)Z
    //   196: ifne +1581 -> 1777
    //   199: new 1150	java/net/Proxy
    //   202: astore 31
    //   204: getstatic 1156	java/net/Proxy$Type:HTTP	Ljava/net/Proxy$Type;
    //   207: astore 32
    //   209: aload 30
    //   211: getfield 240	com/sina/weibo/NetworkUtil$APNWrapper:proxy	Ljava/lang/String;
    //   214: astore 33
    //   216: aload 30
    //   218: getfield 254	com/sina/weibo/NetworkUtil$APNWrapper:port	I
    //   221: istore 34
    //   223: new 1158	java/net/InetSocketAddress
    //   226: dup
    //   227: aload 33
    //   229: iload 34
    //   231: invokespecial 1159	java/net/InetSocketAddress:<init>	(Ljava/lang/String;I)V
    //   234: astore 35
    //   236: aload 31
    //   238: astore 36
    //   240: aload 32
    //   242: astore 37
    //   244: aload 35
    //   246: astore 38
    //   248: aload 36
    //   250: aload 37
    //   252: aload 38
    //   254: invokespecial 1162	java/net/Proxy:<init>	(Ljava/net/Proxy$Type;Ljava/net/SocketAddress;)V
    //   257: aload 13
    //   259: astore 39
    //   261: aload 31
    //   263: astore 40
    //   265: aload 39
    //   267: aload 40
    //   269: invokevirtual 1166	java/net/URL:openConnection	(Ljava/net/Proxy;)Ljava/net/URLConnection;
    //   272: checkcast 1168	java/net/HttpURLConnection
    //   275: astore 41
    //   277: aload 41
    //   279: astore 42
    //   281: ldc_w 417
    //   284: istore 43
    //   286: aload 42
    //   288: iload 43
    //   290: invokevirtual 1172	java/net/HttpURLConnection:setDoInput	(Z)V
    //   293: aload 41
    //   295: astore 44
    //   297: ldc_w 417
    //   300: istore 45
    //   302: aload 44
    //   304: iload 45
    //   306: invokevirtual 1175	java/net/HttpURLConnection:setDoOutput	(Z)V
    //   309: aload 41
    //   311: astore 46
    //   313: ldc_w 426
    //   316: istore 47
    //   318: aload 46
    //   320: iload 47
    //   322: invokevirtual 1178	java/net/HttpURLConnection:setUseCaches	(Z)V
    //   325: aload 41
    //   327: astore 48
    //   329: sipush 30000
    //   332: istore 49
    //   334: aload 48
    //   336: iload 49
    //   338: invokevirtual 1181	java/net/HttpURLConnection:setConnectTimeout	(I)V
    //   341: aload 41
    //   343: astore 50
    //   345: ldc_w 1182
    //   348: istore 51
    //   350: aload 50
    //   352: iload 51
    //   354: invokevirtual 1185	java/net/HttpURLConnection:setReadTimeout	(I)V
    //   357: aload 41
    //   359: astore 52
    //   361: ldc_w 1187
    //   364: astore 53
    //   366: aload 52
    //   368: aload 53
    //   370: invokevirtual 1190	java/net/HttpURLConnection:setRequestMethod	(Ljava/lang/String;)V
    //   373: aload 41
    //   375: astore 54
    //   377: ldc_w 1192
    //   380: astore 55
    //   382: ldc_w 1194
    //   385: astore 56
    //   387: aload 54
    //   389: aload 55
    //   391: aload 56
    //   393: invokevirtual 1197	java/net/HttpURLConnection:setRequestProperty	(Ljava/lang/String;Ljava/lang/String;)V
    //   396: aload 41
    //   398: astore 57
    //   400: ldc_w 1199
    //   403: astore 58
    //   405: ldc_w 324
    //   408: astore 59
    //   410: aload 57
    //   412: aload 58
    //   414: aload 59
    //   416: invokevirtual 1197	java/net/HttpURLConnection:setRequestProperty	(Ljava/lang/String;Ljava/lang/String;)V
    //   419: aload 12
    //   421: invokestatic 52	java/lang/String:valueOf	(Ljava/lang/Object;)Ljava/lang/String;
    //   424: astore 60
    //   426: new 54	java/lang/StringBuilder
    //   429: dup
    //   430: aload 60
    //   432: invokespecial 57	java/lang/StringBuilder:<init>	(Ljava/lang/String;)V
    //   435: ldc_w 1201
    //   438: invokevirtual 63	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   441: astore 61
    //   443: aload 11
    //   445: astore 62
    //   447: aload 61
    //   449: aload 62
    //   451: invokevirtual 63	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   454: invokevirtual 67	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   457: astore 63
    //   459: aload 41
    //   461: astore 64
    //   463: ldc_w 1203
    //   466: astore 65
    //   468: aload 63
    //   470: astore 66
    //   472: aload 64
    //   474: aload 65
    //   476: aload 66
    //   478: invokevirtual 1197	java/net/HttpURLConnection:setRequestProperty	(Ljava/lang/String;Ljava/lang/String;)V
    //   481: new 54	java/lang/StringBuilder
    //   484: dup
    //   485: invokespecial 796	java/lang/StringBuilder:<init>	()V
    //   488: astore 67
    //   490: aload 67
    //   492: astore 68
    //   494: ldc_w 1205
    //   497: astore 69
    //   499: aload 68
    //   501: aload 69
    //   503: invokevirtual 63	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   506: astore 70
    //   508: aload 67
    //   510: astore 71
    //   512: aload 11
    //   514: astore 72
    //   516: aload 71
    //   518: aload 72
    //   520: invokevirtual 63	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   523: astore 73
    //   525: aload 67
    //   527: astore 74
    //   529: ldc_w 1207
    //   532: astore 75
    //   534: aload 74
    //   536: aload 75
    //   538: invokevirtual 63	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   541: astore 76
    //   543: aload 67
    //   545: astore 77
    //   547: ldc_w 1209
    //   550: astore 78
    //   552: aload 77
    //   554: aload 78
    //   556: invokevirtual 63	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   559: astore 79
    //   561: aload 67
    //   563: astore 80
    //   565: aload_3
    //   566: astore 81
    //   568: aload 80
    //   570: aload 81
    //   572: invokevirtual 63	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   575: astore 82
    //   577: aload 67
    //   579: astore 83
    //   581: ldc_w 1207
    //   584: astore 84
    //   586: aload 83
    //   588: aload 84
    //   590: invokevirtual 63	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   593: astore 85
    //   595: iload 9
    //   597: ifeq +221 -> 818
    //   600: ldc_w 1211
    //   603: invokestatic 1214	com/sina/weibo/Utils:loge	(Ljava/lang/CharSequence;)V
    //   606: aload 67
    //   608: astore 86
    //   610: ldc_w 1205
    //   613: astore 87
    //   615: aload 86
    //   617: aload 87
    //   619: invokevirtual 63	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   622: astore 88
    //   624: aload 67
    //   626: astore 89
    //   628: aload 11
    //   630: astore 90
    //   632: aload 89
    //   634: aload 90
    //   636: invokevirtual 63	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   639: astore 91
    //   641: aload 67
    //   643: astore 92
    //   645: ldc_w 1207
    //   648: astore 93
    //   650: aload 92
    //   652: aload 93
    //   654: invokevirtual 63	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   657: astore 94
    //   659: aload 67
    //   661: astore 95
    //   663: ldc_w 1216
    //   666: astore 96
    //   668: aload 95
    //   670: aload 96
    //   672: invokevirtual 63	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   675: astore 97
    //   677: aload 67
    //   679: astore 98
    //   681: dload 6
    //   683: dstore 99
    //   685: aload 98
    //   687: dload 99
    //   689: invokevirtual 1219	java/lang/StringBuilder:append	(D)Ljava/lang/StringBuilder;
    //   692: astore 101
    //   694: aload 67
    //   696: astore 102
    //   698: ldc_w 1207
    //   701: astore 103
    //   703: aload 102
    //   705: aload 103
    //   707: invokevirtual 63	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   710: astore 104
    //   712: aload 67
    //   714: astore 105
    //   716: ldc_w 1205
    //   719: astore 106
    //   721: aload 105
    //   723: aload 106
    //   725: invokevirtual 63	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   728: astore 107
    //   730: aload 67
    //   732: astore 108
    //   734: aload 11
    //   736: astore 109
    //   738: aload 108
    //   740: aload 109
    //   742: invokevirtual 63	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   745: astore 110
    //   747: aload 67
    //   749: astore 111
    //   751: ldc_w 1207
    //   754: astore 112
    //   756: aload 111
    //   758: aload 112
    //   760: invokevirtual 63	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   763: astore 113
    //   765: aload 67
    //   767: astore 114
    //   769: ldc_w 1221
    //   772: astore 115
    //   774: aload 114
    //   776: aload 115
    //   778: invokevirtual 63	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   781: astore 116
    //   783: aload 67
    //   785: astore 117
    //   787: dload 4
    //   789: dstore 118
    //   791: aload 117
    //   793: dload 118
    //   795: invokevirtual 1219	java/lang/StringBuilder:append	(D)Ljava/lang/StringBuilder;
    //   798: astore 120
    //   800: aload 67
    //   802: astore 121
    //   804: ldc_w 1207
    //   807: astore 122
    //   809: aload 121
    //   811: aload 122
    //   813: invokevirtual 63	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   816: astore 123
    //   818: aload 67
    //   820: astore 124
    //   822: ldc_w 1205
    //   825: astore 125
    //   827: aload 124
    //   829: aload 125
    //   831: invokevirtual 63	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   834: astore 126
    //   836: aload 67
    //   838: astore 127
    //   840: aload 11
    //   842: astore 128
    //   844: aload 127
    //   846: aload 128
    //   848: invokevirtual 63	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   851: astore 129
    //   853: aload 67
    //   855: astore 130
    //   857: ldc_w 1207
    //   860: astore 131
    //   862: aload 130
    //   864: aload 131
    //   866: invokevirtual 63	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   869: astore 132
    //   871: aload 67
    //   873: astore 133
    //   875: ldc_w 1223
    //   878: astore 134
    //   880: aload 133
    //   882: aload 134
    //   884: invokevirtual 63	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   887: astore 135
    //   889: aload 67
    //   891: astore 136
    //   893: ldc_w 845
    //   896: astore 137
    //   898: aload 136
    //   900: aload 137
    //   902: invokevirtual 63	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   905: astore 138
    //   907: aload 67
    //   909: astore 139
    //   911: ldc_w 1207
    //   914: astore 140
    //   916: aload 139
    //   918: aload 140
    //   920: invokevirtual 63	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   923: astore 141
    //   925: aload 67
    //   927: astore 142
    //   929: ldc_w 1205
    //   932: astore 143
    //   934: aload 142
    //   936: aload 143
    //   938: invokevirtual 63	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   941: astore 144
    //   943: aload 67
    //   945: astore 145
    //   947: aload 11
    //   949: astore 146
    //   951: aload 145
    //   953: aload 146
    //   955: invokevirtual 63	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   958: astore 147
    //   960: aload 67
    //   962: astore 148
    //   964: ldc_w 1207
    //   967: astore 149
    //   969: aload 148
    //   971: aload 149
    //   973: invokevirtual 63	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   976: astore 150
    //   978: aload 67
    //   980: astore 151
    //   982: ldc_w 1225
    //   985: astore 152
    //   987: aload 151
    //   989: aload 152
    //   991: invokevirtual 63	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   994: astore 153
    //   996: aload 67
    //   998: astore 154
    //   1000: ldc_w 316
    //   1003: astore 155
    //   1005: aload 154
    //   1007: aload 155
    //   1009: invokevirtual 63	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   1012: astore 156
    //   1014: aload 67
    //   1016: astore 157
    //   1018: ldc_w 1207
    //   1021: astore 158
    //   1023: aload 157
    //   1025: aload 158
    //   1027: invokevirtual 63	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   1030: astore 159
    //   1032: aload 67
    //   1034: astore 160
    //   1036: ldc_w 1205
    //   1039: astore 161
    //   1041: aload 160
    //   1043: aload 161
    //   1045: invokevirtual 63	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   1048: astore 162
    //   1050: aload 67
    //   1052: astore 163
    //   1054: aload 11
    //   1056: astore 164
    //   1058: aload 163
    //   1060: aload 164
    //   1062: invokevirtual 63	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   1065: astore 165
    //   1067: aload 67
    //   1069: astore 166
    //   1071: ldc_w 1207
    //   1074: astore 167
    //   1076: aload 166
    //   1078: aload 167
    //   1080: invokevirtual 63	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   1083: astore 168
    //   1085: aload 67
    //   1087: astore 169
    //   1089: ldc_w 1227
    //   1092: astore 170
    //   1094: aload 169
    //   1096: aload 170
    //   1098: invokevirtual 63	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   1101: astore 171
    //   1103: aload_2
    //   1104: invokestatic 318	com/sina/weibo/RPCHelper:calculateS	(Ljava/lang/String;)Ljava/lang/String;
    //   1107: astore 172
    //   1109: aload 67
    //   1111: astore 173
    //   1113: aload 172
    //   1115: astore 174
    //   1117: aload 173
    //   1119: aload 174
    //   1121: invokevirtual 63	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   1124: astore 175
    //   1126: aload 67
    //   1128: astore 176
    //   1130: ldc_w 1207
    //   1133: astore 177
    //   1135: aload 176
    //   1137: aload 177
    //   1139: invokevirtual 63	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   1142: astore 178
    //   1144: aload 67
    //   1146: astore 179
    //   1148: ldc_w 1205
    //   1151: astore 180
    //   1153: aload 179
    //   1155: aload 180
    //   1157: invokevirtual 63	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   1160: astore 181
    //   1162: aload 67
    //   1164: astore 182
    //   1166: aload 11
    //   1168: astore 183
    //   1170: aload 182
    //   1172: aload 183
    //   1174: invokevirtual 63	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   1177: astore 184
    //   1179: aload 67
    //   1181: astore 185
    //   1183: ldc_w 1207
    //   1186: astore 186
    //   1188: aload 185
    //   1190: aload 186
    //   1192: invokevirtual 63	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   1195: astore 187
    //   1197: aload 67
    //   1199: astore 188
    //   1201: ldc_w 1229
    //   1204: astore 189
    //   1206: aload 188
    //   1208: aload 189
    //   1210: invokevirtual 63	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   1213: astore 190
    //   1215: aload 67
    //   1217: astore 191
    //   1219: ldc_w 331
    //   1222: astore 192
    //   1224: aload 191
    //   1226: aload 192
    //   1228: invokevirtual 63	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   1231: astore 193
    //   1233: aload 67
    //   1235: astore 194
    //   1237: ldc_w 1207
    //   1240: astore 195
    //   1242: aload 194
    //   1244: aload 195
    //   1246: invokevirtual 63	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   1249: astore 196
    //   1251: aload 67
    //   1253: astore 197
    //   1255: ldc_w 1231
    //   1258: astore 198
    //   1260: aload 197
    //   1262: aload 198
    //   1264: invokevirtual 63	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   1267: astore 199
    //   1269: aload 67
    //   1271: astore 200
    //   1273: ldc_w 333
    //   1276: astore 201
    //   1278: aload 200
    //   1280: aload 201
    //   1282: invokevirtual 63	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   1285: astore 202
    //   1287: aload 67
    //   1289: astore 203
    //   1291: ldc_w 1207
    //   1294: astore 204
    //   1296: aload 203
    //   1298: aload 204
    //   1300: invokevirtual 63	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   1303: astore 205
    //   1305: new 1233	java/io/BufferedOutputStream
    //   1308: astore 206
    //   1310: aload 41
    //   1312: invokevirtual 1237	java/net/HttpURLConnection:getOutputStream	()Ljava/io/OutputStream;
    //   1315: astore 207
    //   1317: aload 206
    //   1319: astore 208
    //   1321: aload 207
    //   1323: astore 209
    //   1325: aload 208
    //   1327: aload 209
    //   1329: invokespecial 1240	java/io/BufferedOutputStream:<init>	(Ljava/io/OutputStream;)V
    //   1332: aload 67
    //   1334: invokevirtual 67	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   1337: invokevirtual 1243	java/lang/String:getBytes	()[B
    //   1340: astore 210
    //   1342: aload 206
    //   1344: astore 211
    //   1346: aload 210
    //   1348: astore 212
    //   1350: aload 211
    //   1352: aload 212
    //   1354: invokevirtual 1245	java/io/BufferedOutputStream:write	([B)V
    //   1357: dload 8
    //   1359: ifeq +250 -> 1609
    //   1362: new 54	java/lang/StringBuilder
    //   1365: dup
    //   1366: invokespecial 796	java/lang/StringBuilder:<init>	()V
    //   1369: astore 213
    //   1371: new 1025	java/io/File
    //   1374: astore 214
    //   1376: aload 214
    //   1378: astore 215
    //   1380: dload 8
    //   1382: dstore 216
    //   1384: aload 215
    //   1386: dload 216
    //   1388: invokespecial 1026	java/io/File:<init>	(Ljava/lang/String;)V
    //   1391: new 1247	java/io/FileInputStream
    //   1394: dup
    //   1395: aload 214
    //   1397: invokespecial 1250	java/io/FileInputStream:<init>	(Ljava/io/File;)V
    //   1400: astore 218
    //   1402: aload 213
    //   1404: astore 219
    //   1406: ldc_w 1205
    //   1409: astore 220
    //   1411: aload 219
    //   1413: aload 220
    //   1415: invokevirtual 63	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   1418: astore 221
    //   1420: aload 213
    //   1422: astore 222
    //   1424: aload 11
    //   1426: astore 223
    //   1428: aload 222
    //   1430: aload 223
    //   1432: invokevirtual 63	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   1435: astore 224
    //   1437: aload 213
    //   1439: astore 225
    //   1441: ldc_w 1207
    //   1444: astore 226
    //   1446: aload 225
    //   1448: aload 226
    //   1450: invokevirtual 63	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   1453: astore 227
    //   1455: new 54	java/lang/StringBuilder
    //   1458: dup
    //   1459: ldc_w 1252
    //   1462: invokespecial 57	java/lang/StringBuilder:<init>	(Ljava/lang/String;)V
    //   1465: astore 228
    //   1467: aload 214
    //   1469: invokevirtual 1253	java/io/File:getName	()Ljava/lang/String;
    //   1472: astore 229
    //   1474: aload 228
    //   1476: aload 229
    //   1478: invokevirtual 63	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   1481: ldc_w 1255
    //   1484: invokevirtual 63	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   1487: invokevirtual 67	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   1490: astore 230
    //   1492: aload 213
    //   1494: astore 231
    //   1496: aload 230
    //   1498: astore 232
    //   1500: aload 231
    //   1502: aload 232
    //   1504: invokevirtual 63	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   1507: astore 233
    //   1509: aload 213
    //   1511: astore 234
    //   1513: ldc_w 1257
    //   1516: astore 235
    //   1518: aload 234
    //   1520: aload 235
    //   1522: invokevirtual 63	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   1525: astore 236
    //   1527: aload 213
    //   1529: invokevirtual 67	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   1532: invokevirtual 1243	java/lang/String:getBytes	()[B
    //   1535: astore 237
    //   1537: aload 206
    //   1539: astore 238
    //   1541: aload 237
    //   1543: astore 239
    //   1545: aload 238
    //   1547: aload 239
    //   1549: invokevirtual 1245	java/io/BufferedOutputStream:write	([B)V
    //   1552: aload 218
    //   1554: astore 240
    //   1556: aload 10
    //   1558: astore 241
    //   1560: iconst_0
    //   1561: istore 242
    //   1563: sipush 4096
    //   1566: istore 243
    //   1568: aload 240
    //   1570: aload 241
    //   1572: iload 242
    //   1574: iload 243
    //   1576: invokevirtual 1260	java/io/FileInputStream:read	([BII)I
    //   1579: istore 244
    //   1581: iload 244
    //   1583: ifgt +220 -> 1803
    //   1586: ldc_w 1207
    //   1589: invokevirtual 1243	java/lang/String:getBytes	()[B
    //   1592: astore 245
    //   1594: aload 206
    //   1596: astore 246
    //   1598: aload 245
    //   1600: astore 247
    //   1602: aload 246
    //   1604: aload 247
    //   1606: invokevirtual 1245	java/io/BufferedOutputStream:write	([B)V
    //   1609: new 54	java/lang/StringBuilder
    //   1612: dup
    //   1613: ldc_w 1205
    //   1616: invokespecial 57	java/lang/StringBuilder:<init>	(Ljava/lang/String;)V
    //   1619: astore 248
    //   1621: aload 11
    //   1623: astore 249
    //   1625: aload 248
    //   1627: aload 249
    //   1629: invokevirtual 63	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   1632: ldc_w 1262
    //   1635: invokevirtual 63	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   1638: invokevirtual 67	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   1641: invokevirtual 1243	java/lang/String:getBytes	()[B
    //   1644: astore 250
    //   1646: aload 206
    //   1648: aload 250
    //   1650: invokevirtual 1245	java/io/BufferedOutputStream:write	([B)V
    //   1653: aload 206
    //   1655: invokevirtual 1263	java/io/BufferedOutputStream:flush	()V
    //   1658: aload 41
    //   1660: invokevirtual 1266	java/net/HttpURLConnection:getResponseCode	()I
    //   1663: istore 251
    //   1665: iload 251
    //   1667: istore 252
    //   1669: sipush 200
    //   1672: istore 253
    //   1674: iload 252
    //   1676: iload 253
    //   1678: if_icmpeq +218 -> 1896
    //   1681: aload 206
    //   1683: invokevirtual 1267	java/io/BufferedOutputStream:close	()V
    //   1686: aload 41
    //   1688: invokevirtual 1270	java/net/HttpURLConnection:disconnect	()V
    //   1691: iconst_1
    //   1692: anewarray 4	java/lang/Object
    //   1695: astore 254
    //   1697: iload 251
    //   1699: invokestatic 388	java/lang/Integer:valueOf	(I)Ljava/lang/Integer;
    //   1702: astore 255
    //   1704: aload 254
    //   1706: iconst_0
    //   1707: aload 255
    //   1709: aastore
    //   1710: ldc_w 1272
    //   1713: aload 254
    //   1715: invokestatic 134	java/lang/String:format	(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
    //   1718: wide
    //   1722: new 9	com/sina/weibo/RPCHelper$HttpException
    //   1725: dup
    //   1726: wide
    //   1730: invokespecial 135	com/sina/weibo/RPCHelper$HttpException:<init>	(Ljava/lang/String;)V
    //   1733: athrow
    //   1734: wide
    //   1738: new 9	com/sina/weibo/RPCHelper$HttpException
    //   1741: wide
    //   1745: wide
    //   1749: wide
    //   1753: wide
    //   1757: wide
    //   1761: wide
    //   1765: wide
    //   1769: invokespecial 138	com/sina/weibo/RPCHelper$HttpException:<init>	(Ljava/lang/Throwable;)V
    //   1772: wide
    //   1776: athrow
    //   1777: aload 13
    //   1779: invokevirtual 1275	java/net/URL:openConnection	()Ljava/net/URLConnection;
    //   1782: checkcast 1168	java/net/HttpURLConnection
    //   1785: astore 41
    //   1787: goto -1510 -> 277
    //   1790: aload 13
    //   1792: invokevirtual 1275	java/net/URL:openConnection	()Ljava/net/URLConnection;
    //   1795: checkcast 1168	java/net/HttpURLConnection
    //   1798: astore 41
    //   1800: goto -1523 -> 277
    //   1803: aload 206
    //   1805: wide
    //   1809: aload 10
    //   1811: wide
    //   1815: iconst_0
    //   1816: wide
    //   1820: iload 244
    //   1822: wide
    //   1826: wide
    //   1830: wide
    //   1834: wide
    //   1838: wide
    //   1842: invokevirtual 1276	java/io/BufferedOutputStream:write	([BII)V
    //   1845: aload 206
    //   1847: invokevirtual 1263	java/io/BufferedOutputStream:flush	()V
    //   1850: goto -298 -> 1552
    //   1853: wide
    //   1857: new 9	com/sina/weibo/RPCHelper$HttpException
    //   1860: wide
    //   1864: wide
    //   1868: wide
    //   1872: wide
    //   1876: wide
    //   1880: wide
    //   1884: wide
    //   1888: invokespecial 138	com/sina/weibo/RPCHelper$HttpException:<init>	(Ljava/lang/Throwable;)V
    //   1891: wide
    //   1895: athrow
    //   1896: aload 41
    //   1898: invokevirtual 1279	java/net/HttpURLConnection:getInputStream	()Ljava/io/InputStream;
    //   1901: wide
    //   1905: new 54	java/lang/StringBuilder
    //   1908: dup
    //   1909: invokespecial 796	java/lang/StringBuilder:<init>	()V
    //   1912: astore 67
    //   1914: wide
    //   1918: wide
    //   1922: aload 10
    //   1924: wide
    //   1928: iconst_0
    //   1929: wide
    //   1933: sipush 4096
    //   1936: wide
    //   1940: wide
    //   1944: wide
    //   1948: wide
    //   1952: wide
    //   1956: invokevirtual 1280	java/io/InputStream:read	([BII)I
    //   1959: istore 244
    //   1961: iload 244
    //   1963: ifgt +122 -> 2085
    //   1966: wide
    //   1970: invokevirtual 1281	java/io/InputStream:close	()V
    //   1973: aload 206
    //   1975: invokevirtual 1267	java/io/BufferedOutputStream:close	()V
    //   1978: aload 41
    //   1980: invokevirtual 1270	java/net/HttpURLConnection:disconnect	()V
    //   1983: aload 67
    //   1985: invokevirtual 67	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   1988: wide
    //   1992: wide
    //   1996: invokestatic 203	com/sina/weibo/RPCHelper:isError	(Ljava/lang/String;)Z
    //   1999: ifeq +212 -> 2211
    //   2002: wide
    //   2006: invokestatic 207	com/sina/weibo/RPCHelper:parseError	(Ljava/lang/String;)[Ljava/lang/String;
    //   2009: iconst_1
    //   2010: aaload
    //   2011: wide
    //   2015: new 6	com/sina/weibo/RPCHelper$ApiException
    //   2018: dup
    //   2019: wide
    //   2023: invokespecial 208	com/sina/weibo/RPCHelper$ApiException:<init>	(Ljava/lang/String;)V
    //   2026: wide
    //   2030: new 9	com/sina/weibo/RPCHelper$HttpException
    //   2033: dup
    //   2034: wide
    //   2038: invokespecial 138	com/sina/weibo/RPCHelper$HttpException:<init>	(Ljava/lang/Throwable;)V
    //   2041: athrow
    //   2042: wide
    //   2046: new 9	com/sina/weibo/RPCHelper$HttpException
    //   2049: wide
    //   2053: wide
    //   2057: wide
    //   2061: wide
    //   2065: wide
    //   2069: wide
    //   2073: wide
    //   2077: invokespecial 138	com/sina/weibo/RPCHelper$HttpException:<init>	(Ljava/lang/Throwable;)V
    //   2080: wide
    //   2084: athrow
    //   2085: new 48	java/lang/String
    //   2088: wide
    //   2092: wide
    //   2096: wide
    //   2100: aload 10
    //   2102: wide
    //   2106: iconst_0
    //   2107: wide
    //   2111: iload 244
    //   2113: wide
    //   2117: wide
    //   2121: wide
    //   2125: wide
    //   2129: wide
    //   2133: invokespecial 1283	java/lang/String:<init>	([BII)V
    //   2136: aload 67
    //   2138: wide
    //   2142: wide
    //   2146: wide
    //   2150: wide
    //   2154: wide
    //   2158: invokevirtual 63	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   2161: wide
    //   2165: goto -251 -> 1914
    //   2168: wide
    //   2172: new 9	com/sina/weibo/RPCHelper$HttpException
    //   2175: wide
    //   2179: wide
    //   2183: wide
    //   2187: wide
    //   2191: wide
    //   2195: wide
    //   2199: wide
    //   2203: invokespecial 138	com/sina/weibo/RPCHelper$HttpException:<init>	(Ljava/lang/Throwable;)V
    //   2206: wide
    //   2210: athrow
    //   2211: wide
    //   2215: invokestatic 841	com/sina/weibo/RPCHelper:parseResult	(Ljava/lang/String;)Z
    //   2218: wide
    //   2222: wide
    //   2226: ireturn
    //
    // Exception table:
    //   from	to	target	type
    //   0	134	134	java/net/MalformedURLException
    //   159	1734	134	java/net/MalformedURLException
    //   1777	1850	134	java/net/MalformedURLException
    //   1896	2042	134	java/net/MalformedURLException
    //   2085	2165	134	java/net/MalformedURLException
    //   2211	2222	134	java/net/MalformedURLException
    //   0	134	1734	java/net/ProtocolException
    //   159	1734	1734	java/net/ProtocolException
    //   1777	1850	1734	java/net/ProtocolException
    //   1896	2042	1734	java/net/ProtocolException
    //   2085	2165	1734	java/net/ProtocolException
    //   2211	2222	1734	java/net/ProtocolException
    //   0	134	1853	java/io/FileNotFoundException
    //   159	1734	1853	java/io/FileNotFoundException
    //   1777	1850	1853	java/io/FileNotFoundException
    //   1896	2042	1853	java/io/FileNotFoundException
    //   2085	2165	1853	java/io/FileNotFoundException
    //   2211	2222	1853	java/io/FileNotFoundException
    //   0	134	2042	java/io/IOException
    //   159	1734	2042	java/io/IOException
    //   1777	1850	2042	java/io/IOException
    //   1896	2042	2042	java/io/IOException
    //   2085	2165	2042	java/io/IOException
    //   2211	2222	2042	java/io/IOException
    //   0	134	2168	com/sina/weibo/RPCHelper$ParseException
    //   159	1734	2168	com/sina/weibo/RPCHelper$ParseException
    //   1777	1850	2168	com/sina/weibo/RPCHelper$ParseException
    //   1896	2042	2168	com/sina/weibo/RPCHelper$ParseException
    //   2085	2165	2168	com/sina/weibo/RPCHelper$ParseException
    //   2211	2222	2168	com/sina/weibo/RPCHelper$ParseException
  }

  public boolean postSimpleMBlog(String paramString1, String paramString2, String paramString3)
    throws RPCHelper.HttpException
  {
    RPCHelper localRPCHelper = this;
    String str1 = paramString1;
    String str2 = paramString2;
    String str3 = paramString3;
    double d = 0.0D;
    return localRPCHelper.postNewMBlog(str1, str2, str3, 0.0D, d, null, 0);
  }

  public boolean postSimpleMBlog(String paramString1, String paramString2, String paramString3, String paramString4)
    throws RPCHelper.HttpException
  {
    RPCHelper localRPCHelper = this;
    String str1 = paramString1;
    String str2 = paramString2;
    String str3 = paramString3;
    double d = 0.0D;
    String str4 = paramString4;
    return localRPCHelper.postNewMBlog(str1, str2, str3, 0.0D, d, str4, 0);
  }

  public Object[] registerByWhiteList()
    throws RPCHelper.HttpException
  {
    try
    {
      arrayOfObject1 = new Object[2];
      localUser = new User();
      Object[] arrayOfObject2 = new Object[5];
      arrayOfObject2[0] = "http://t.sina.cn/interface/f/ttt/v3/";
      arrayOfObject2[1] = "meizu_m9";
      arrayOfObject2[2] = "whitelist";
      arrayOfObject2[3] = "10225010";
      arrayOfObject2[4] = "9176_0001";
      String str1 = String.format("%swlreg.php?c=%s&s=%s&from=%s&wm=%s", arrayOfObject2);
      HttpGet localHttpGet = new HttpGet(str1);
      String str2 = execute(localHttpGet);
      localXmlPullParser = Xml.newPullParser();
      StringReader localStringReader = new StringReader(str2);
      localXmlPullParser.setInput(localStringReader);
      while (true)
      {
        int i = localXmlPullParser.next();
        if (i == 1)
        {
          localUser.status = 0;
          localUser.msgurl = "";
          localUser.url = "";
          arrayOfObject1[0] = localUser;
          return arrayOfObject1;
        }
        switch (i)
        {
        default:
          break;
        case 2:
          if (!localXmlPullParser.getName().equalsIgnoreCase("gsid"))
            break label207;
          String str3 = parseText(localXmlPullParser);
          localUser.gsid = str3;
        }
      }
    }
    catch (XmlPullParserException localXmlPullParserException)
    {
      while (true)
      {
        User localUser;
        throw new HttpException();
        if (!localXmlPullParser.getName().equals("uid"))
          break;
        String str4 = parseText(localXmlPullParser);
        localUser.uid = str4;
        localUser.nick = str4;
      }
    }
    catch (IOException localIOException)
    {
      while (true)
      {
        Object[] arrayOfObject1;
        XmlPullParser localXmlPullParser;
        label207: throw new HttpException();
        if (!localXmlPullParser.getName().equalsIgnoreCase("pwd"))
          continue;
        String str5 = parseText(localXmlPullParser);
        arrayOfObject1[1] = str5;
      }
    }
    catch (ParseException localParseException)
    {
    }
    throw new HttpException();
  }

  public User registerUsr(String paramString1, String paramString2, String paramString3, String paramString4)
    throws RPCHelper.HttpException
  {
    String str1 = String.valueOf(paramString1);
    StringBuilder localStringBuilder1 = new StringBuilder(str1);
    String str2 = paramString2;
    char[] arrayOfChar1 = MD5.hexdigest(str2 + "WQnVIAWDBmR9XV86YNAO97P3Xgk21az9").toCharArray();
    String str3 = String.valueOf(paramString1);
    StringBuilder localStringBuilder2 = new StringBuilder(str3);
    String str4 = WeiboApplication.IMEI_NUM;
    char[] arrayOfChar2 = MD5.hexdigest(str4).toCharArray();
    StringBuilder localStringBuilder3 = new StringBuilder();
    char c1 = arrayOfChar2[1];
    StringBuilder localStringBuilder4 = localStringBuilder3;
    char c2 = c1;
    StringBuilder localStringBuilder5 = localStringBuilder4.append(c2);
    char c3 = arrayOfChar2[2];
    StringBuilder localStringBuilder6 = localStringBuilder5.append(c3);
    char c4 = arrayOfChar2[3];
    StringBuilder localStringBuilder7 = localStringBuilder6.append(c4);
    char c5 = arrayOfChar2[4];
    StringBuilder localStringBuilder8 = localStringBuilder7.append(c5);
    char c6 = arrayOfChar2[5];
    StringBuilder localStringBuilder9 = localStringBuilder8.append(c6);
    char c7 = arrayOfChar2[6];
    StringBuilder localStringBuilder10 = localStringBuilder9.append(c7);
    StringBuilder localStringBuilder11 = new StringBuilder();
    char c8 = arrayOfChar1[1];
    StringBuilder localStringBuilder12 = localStringBuilder11;
    char c9 = c8;
    StringBuilder localStringBuilder13 = localStringBuilder12.append(c9);
    char c10 = arrayOfChar1[5];
    StringBuilder localStringBuilder14 = localStringBuilder13.append(c10);
    char c11 = arrayOfChar1[2];
    StringBuilder localStringBuilder15 = localStringBuilder14.append(c11);
    char c12 = arrayOfChar1[10];
    StringBuilder localStringBuilder16 = localStringBuilder15.append(c12);
    char c13 = arrayOfChar1[17];
    StringBuilder localStringBuilder17 = localStringBuilder16.append(c13);
    char c14 = arrayOfChar1[9];
    StringBuilder localStringBuilder18 = localStringBuilder17.append(c14);
    char c15 = arrayOfChar1[25];
    StringBuilder localStringBuilder19 = localStringBuilder18.append(c15);
    char c16 = arrayOfChar1[27];
    StringBuilder localStringBuilder20 = localStringBuilder19.append(c16);
    HttpPost localHttpPost1 = new org/apache/http/client/methods/HttpPost;
    Object[] arrayOfObject = new Object[5];
    arrayOfObject[0] = "http://t.sina.cn/interface/f/ttt/v3/";
    arrayOfObject[1] = localStringBuilder20;
    arrayOfObject[2] = "meizu_m9";
    arrayOfObject[3] = "10225010";
    arrayOfObject[4] = "9176_0001";
    String str5 = String.format("%sreg.php?s=%s&c=%s&from=%s&wm=%s", arrayOfObject);
    HttpPost localHttpPost2 = localHttpPost1;
    String str6 = str5;
    localHttpPost2.<init>(str6);
    LinkedList localLinkedList1 = new LinkedList();
    BasicNameValuePair localBasicNameValuePair1 = new org/apache/http/message/BasicNameValuePair;
    BasicNameValuePair localBasicNameValuePair2 = localBasicNameValuePair1;
    String str7 = "u";
    String str8 = paramString1;
    localBasicNameValuePair2.<init>(str7, str8);
    LinkedList localLinkedList2 = localLinkedList1;
    BasicNameValuePair localBasicNameValuePair3 = localBasicNameValuePair1;
    boolean bool1 = localLinkedList2.add(localBasicNameValuePair3);
    BasicNameValuePair localBasicNameValuePair4 = new org/apache/http/message/BasicNameValuePair;
    BasicNameValuePair localBasicNameValuePair5 = localBasicNameValuePair4;
    String str9 = "p";
    String str10 = paramString2;
    localBasicNameValuePair5.<init>(str9, str10);
    LinkedList localLinkedList3 = localLinkedList1;
    BasicNameValuePair localBasicNameValuePair6 = localBasicNameValuePair4;
    boolean bool2 = localLinkedList3.add(localBasicNameValuePair6);
    BasicNameValuePair localBasicNameValuePair7 = new BasicNameValuePair("q", "您的手机密保是");
    LinkedList localLinkedList4 = localLinkedList1;
    BasicNameValuePair localBasicNameValuePair8 = localBasicNameValuePair7;
    boolean bool3 = localLinkedList4.add(localBasicNameValuePair8);
    String str11 = localStringBuilder10.toString();
    BasicNameValuePair localBasicNameValuePair9 = new BasicNameValuePair("a", str11);
    LinkedList localLinkedList5 = localLinkedList1;
    BasicNameValuePair localBasicNameValuePair10 = localBasicNameValuePair9;
    boolean bool4 = localLinkedList5.add(localBasicNameValuePair10);
    BasicNameValuePair localBasicNameValuePair11 = new org/apache/http/message/BasicNameValuePair;
    BasicNameValuePair localBasicNameValuePair12 = localBasicNameValuePair11;
    String str12 = "nick";
    String str13 = paramString3;
    localBasicNameValuePair12.<init>(str12, str13);
    LinkedList localLinkedList6 = localLinkedList1;
    BasicNameValuePair localBasicNameValuePair13 = localBasicNameValuePair11;
    boolean bool5 = localLinkedList6.add(localBasicNameValuePair13);
    BasicNameValuePair localBasicNameValuePair14 = new org/apache/http/message/BasicNameValuePair;
    BasicNameValuePair localBasicNameValuePair15 = localBasicNameValuePair14;
    String str14 = "gender";
    String str15 = paramString4;
    localBasicNameValuePair15.<init>(str14, str15);
    LinkedList localLinkedList7 = localLinkedList1;
    BasicNameValuePair localBasicNameValuePair16 = localBasicNameValuePair14;
    boolean bool6 = localLinkedList7.add(localBasicNameValuePair16);
    BasicNameValuePair localBasicNameValuePair17 = new BasicNameValuePair("wm", "9176_0001");
    LinkedList localLinkedList8 = localLinkedList1;
    BasicNameValuePair localBasicNameValuePair18 = localBasicNameValuePair17;
    boolean bool7 = localLinkedList8.add(localBasicNameValuePair18);
    while (true)
    {
      XmlPullParser localXmlPullParser1;
      User localUser;
      try
      {
        UrlEncodedFormEntity localUrlEncodedFormEntity1 = new org/apache/http/client/entity/UrlEncodedFormEntity;
        UrlEncodedFormEntity localUrlEncodedFormEntity2 = localUrlEncodedFormEntity1;
        LinkedList localLinkedList9 = localLinkedList1;
        String str16 = "UTF-8";
        localUrlEncodedFormEntity2.<init>(localLinkedList9, str16);
        localHttpPost1.setEntity(localUrlEncodedFormEntity1);
        String str17 = localUrlEncodedFormEntity1.toString();
        localXmlPullParser1 = Xml.newPullParser();
        localUser = new User();
        RPCHelper localRPCHelper = this;
        HttpPost localHttpPost3 = localHttpPost1;
        String str18 = localRPCHelper.execute(localHttpPost3);
        StringReader localStringReader1 = new java/io/StringReader;
        StringReader localStringReader2 = localStringReader1;
        String str19 = str18;
        localStringReader2.<init>(str19);
        XmlPullParser localXmlPullParser2 = localXmlPullParser1;
        StringReader localStringReader3 = localStringReader1;
        localXmlPullParser2.setInput(localStringReader3);
        int i = localXmlPullParser1.next();
        int j = i;
        int k = 1;
        if (j == k)
          return localUser;
        switch (i)
        {
        default:
          break;
        case 2:
          if (!localXmlPullParser1.getName().equals("gsid"))
            continue;
          String str20 = parseText(localXmlPullParser1);
          localUser.gsid = str20;
          continue;
        }
      }
      catch (NumberFormatException localNumberFormatException1)
      {
        HttpException localHttpException1 = new com/sina/weibo/RPCHelper$HttpException;
        HttpException localHttpException2 = localHttpException1;
        NumberFormatException localNumberFormatException2 = localNumberFormatException1;
        localHttpException2.<init>(localNumberFormatException2);
        throw localHttpException1;
        if (!localXmlPullParser1.getName().equals("status"))
          continue;
        int m = Integer.parseInt(parseText(localXmlPullParser1));
        localUser.status = m;
        continue;
      }
      catch (UnsupportedEncodingException localUnsupportedEncodingException1)
      {
        HttpException localHttpException3 = new com/sina/weibo/RPCHelper$HttpException;
        HttpException localHttpException4 = localHttpException3;
        UnsupportedEncodingException localUnsupportedEncodingException2 = localUnsupportedEncodingException1;
        localHttpException4.<init>(localUnsupportedEncodingException2);
        throw localHttpException3;
        if (!localXmlPullParser1.getName().equals("uid"))
          continue;
        String str21 = parseText(localXmlPullParser1);
        localUser.uid = str21;
        continue;
      }
      catch (XmlPullParserException localXmlPullParserException1)
      {
        HttpException localHttpException5 = new com/sina/weibo/RPCHelper$HttpException;
        HttpException localHttpException6 = localHttpException5;
        XmlPullParserException localXmlPullParserException2 = localXmlPullParserException1;
        localHttpException6.<init>(localXmlPullParserException2);
        throw localHttpException5;
        if (!localXmlPullParser1.getName().equals("nick"))
          continue;
        String str22 = parseText(localXmlPullParser1);
        localUser.nick = str22;
        continue;
      }
      catch (IOException localIOException1)
      {
        HttpException localHttpException7 = new com/sina/weibo/RPCHelper$HttpException;
        HttpException localHttpException8 = localHttpException7;
        IOException localIOException2 = localIOException1;
        localHttpException8.<init>(localIOException2);
        throw localHttpException7;
        if (localXmlPullParser1.getName().equals("url"))
        {
          String str23 = parseText(localXmlPullParser1);
          localUser.url = str23;
          continue;
        }
      }
      catch (ParseException localParseException1)
      {
        HttpException localHttpException9 = new com/sina/weibo/RPCHelper$HttpException;
        HttpException localHttpException10 = localHttpException9;
        ParseException localParseException2 = localParseException1;
        localHttpException10.<init>(localParseException2);
        throw localHttpException9;
      }
      if (!localXmlPullParser1.getName().equals("msgurl"))
        continue;
      String str24 = parseText(localXmlPullParser1);
      localUser.msgurl = str24;
    }
  }

  public boolean replyComment(User paramUser, String paramString1, String paramString2, String paramString3, String paramString4, String paramString5, boolean paramBoolean)
    throws RPCHelper.HttpException
  {
    try
    {
      ArrayList localArrayList = new ArrayList();
      BasicNameValuePair localBasicNameValuePair1 = new BasicNameValuePair("c", "meizu_m9");
      boolean bool1 = localArrayList.add(localBasicNameValuePair1);
      String str1 = calculateS(paramUser.uid);
      BasicNameValuePair localBasicNameValuePair2 = new BasicNameValuePair("s", str1);
      boolean bool2 = localArrayList.add(localBasicNameValuePair2);
      BasicNameValuePair localBasicNameValuePair3 = new BasicNameValuePair("act", "addReply");
      boolean bool3 = localArrayList.add(localBasicNameValuePair3);
      BasicNameValuePair localBasicNameValuePair4 = new BasicNameValuePair("srcuid", paramString1);
      boolean bool4 = localArrayList.add(localBasicNameValuePair4);
      BasicNameValuePair localBasicNameValuePair5 = new BasicNameValuePair("srcid", paramString2);
      boolean bool5 = localArrayList.add(localBasicNameValuePair5);
      BasicNameValuePair localBasicNameValuePair6 = new BasicNameValuePair("cmtuid", paramString3);
      boolean bool6 = localArrayList.add(localBasicNameValuePair6);
      BasicNameValuePair localBasicNameValuePair7 = new BasicNameValuePair("cmtid", paramString4);
      boolean bool7 = localArrayList.add(localBasicNameValuePair7);
      BasicNameValuePair localBasicNameValuePair8 = new BasicNameValuePair("content", paramString5);
      boolean bool8 = localArrayList.add(localBasicNameValuePair8);
      BasicNameValuePair localBasicNameValuePair9 = new BasicNameValuePair("from", "10225010");
      boolean bool9 = localArrayList.add(localBasicNameValuePair9);
      BasicNameValuePair localBasicNameValuePair10 = new BasicNameValuePair("wm", "9176_0001");
      boolean bool10 = localArrayList.add(localBasicNameValuePair10);
      if (paramBoolean)
      {
        BasicNameValuePair localBasicNameValuePair11 = new BasicNameValuePair("rt", "1");
        boolean bool11 = localArrayList.add(localBasicNameValuePair11);
      }
      UrlEncodedFormEntity localUrlEncodedFormEntity = new UrlEncodedFormEntity(localArrayList, "UTF-8");
      Object[] arrayOfObject = new Object[5];
      arrayOfObject[0] = "http://t.sina.cn/interface/f/ttt/v3/";
      String str2 = paramUser.gsid;
      arrayOfObject[1] = str2;
      arrayOfObject[2] = "10225010";
      arrayOfObject[3] = "9176_0001";
      arrayOfObject[4] = "meizu_m9";
      String str3 = String.format("%sdealcomment.php?gsid=%s&from=%s&wm=%s&c=%s", arrayOfObject);
      HttpPost localHttpPost = new HttpPost(str3);
      localHttpPost.setEntity(localUrlEncodedFormEntity);
      boolean bool12 = parseResult(execute(localHttpPost));
      return bool12;
    }
    catch (UnsupportedEncodingException localUnsupportedEncodingException)
    {
      throw new HttpException();
    }
    catch (ParseException localParseException)
    {
    }
    throw new HttpException();
  }

  public boolean report(User paramUser, String paramString1, String paramString2, String paramString3)
    throws RPCHelper.HttpException
  {
    RPCHelper localRPCHelper = this;
    User localUser = paramUser;
    String str1 = paramString1;
    String str2 = paramString2;
    String str3 = paramString3;
    int i = 1;
    return localRPCHelper.report(localUser, str1, str2, str3, 1, i);
  }

  public boolean reportBlog(User paramUser, String paramString1, String paramString2)
    throws RPCHelper.HttpException
  {
    RPCHelper localRPCHelper = this;
    User localUser = paramUser;
    String str1 = paramString1;
    String str2 = paramString2;
    int i = 1;
    return localRPCHelper.report(localUser, null, str1, str2, 1, i);
  }

  public boolean reportUser(User paramUser, String paramString1, String paramString2)
    throws RPCHelper.HttpException
  {
    RPCHelper localRPCHelper = this;
    User localUser = paramUser;
    String str1 = paramString1;
    String str2 = paramString2;
    int i = 1;
    return localRPCHelper.report(localUser, str1, null, str2, 1, i);
  }

  public Object[] searchMBlog(User paramUser, String paramString, int paramInt1, int paramInt2, int paramInt3)
    throws RPCHelper.HttpException
  {
    try
    {
      Object[] arrayOfObject1 = new Object[10];
      arrayOfObject1[0] = "http://t.sina.cn/interface/f/ttt/v3/";
      String str1 = paramUser.gsid;
      arrayOfObject1[1] = str1;
      String str2 = URLEncoder.encode(paramString, "UTF-8");
      arrayOfObject1[2] = str2;
      Integer localInteger1 = Integer.valueOf(paramInt1);
      arrayOfObject1[3] = localInteger1;
      Integer localInteger2 = Integer.valueOf(paramInt2);
      arrayOfObject1[4] = localInteger2;
      Integer localInteger3 = Integer.valueOf(paramInt3);
      arrayOfObject1[5] = localInteger3;
      arrayOfObject1[6] = "meizu_m9";
      String str3 = calculateS(paramUser.uid);
      arrayOfObject1[7] = str3;
      arrayOfObject1[8] = "10225010";
      arrayOfObject1[9] = "9176_0001";
      String str4 = String.format("%ssearchmblog.php?gsid=%s&keyword=%s&picsize=%d&page=%d&pagesize=%d&c=%s&s=%s&from=%s&wm=%s", arrayOfObject1);
      HttpGet localHttpGet = new HttpGet(str4);
      String str5 = execute(localHttpGet);
      Object[] arrayOfObject2 = getMBlogList(str5);
      return arrayOfObject2;
    }
    catch (UnsupportedEncodingException localUnsupportedEncodingException)
    {
    }
    throw new HttpException();
  }

  public Object[] searchUser(User paramUser, String paramString, int paramInt1, int paramInt2)
    throws RPCHelper.HttpException
  {
    try
    {
      Object[] arrayOfObject1 = new Object[9];
      arrayOfObject1[0] = "http://t.sina.cn/interface/f/ttt/v3/";
      String str1 = paramUser.gsid;
      arrayOfObject1[1] = str1;
      String str2 = URLEncoder.encode(paramString, "UTF-8");
      arrayOfObject1[2] = str2;
      Integer localInteger1 = Integer.valueOf(paramInt1);
      arrayOfObject1[3] = localInteger1;
      Integer localInteger2 = Integer.valueOf(paramInt2);
      arrayOfObject1[4] = localInteger2;
      arrayOfObject1[5] = "meizu_m9";
      String str3 = calculateS(paramUser.uid);
      arrayOfObject1[6] = str3;
      arrayOfObject1[7] = "10225010";
      arrayOfObject1[8] = "9176_0001";
      String str4 = String.format("%ssearchuser.php?gsid=%s&keyword=%s&page=%d&pagesize=%d&c=%s&s=%s&from=%s&wm=%s", arrayOfObject1);
      HttpGet localHttpGet = new HttpGet(str4);
      Object[] arrayOfObject2 = getUserInfoList(localHttpGet);
      return arrayOfObject2;
    }
    catch (UnsupportedEncodingException localUnsupportedEncodingException)
    {
    }
    throw new HttpException();
  }

  public boolean sendMessage(User paramUser, String paramString1, String paramString2)
    throws RPCHelper.HttpException
  {
    try
    {
      ArrayList localArrayList = new ArrayList();
      BasicNameValuePair localBasicNameValuePair1 = new BasicNameValuePair("c", "meizu_m9");
      boolean bool1 = localArrayList.add(localBasicNameValuePair1);
      String str1 = calculateS(paramUser.uid);
      BasicNameValuePair localBasicNameValuePair2 = new BasicNameValuePair("s", str1);
      boolean bool2 = localArrayList.add(localBasicNameValuePair2);
      BasicNameValuePair localBasicNameValuePair3 = new BasicNameValuePair("act", "send");
      boolean bool3 = localArrayList.add(localBasicNameValuePair3);
      BasicNameValuePair localBasicNameValuePair4 = new BasicNameValuePair("nick", paramString1);
      boolean bool4 = localArrayList.add(localBasicNameValuePair4);
      BasicNameValuePair localBasicNameValuePair5 = new BasicNameValuePair("content", paramString2);
      boolean bool5 = localArrayList.add(localBasicNameValuePair5);
      BasicNameValuePair localBasicNameValuePair6 = new BasicNameValuePair("from", "10225010");
      boolean bool6 = localArrayList.add(localBasicNameValuePair6);
      BasicNameValuePair localBasicNameValuePair7 = new BasicNameValuePair("wm", "9176_0001");
      boolean bool7 = localArrayList.add(localBasicNameValuePair7);
      try
      {
        UrlEncodedFormEntity localUrlEncodedFormEntity = new UrlEncodedFormEntity(localArrayList, "UTF-8");
        Object[] arrayOfObject = new Object[5];
        arrayOfObject[0] = "http://t.sina.cn/interface/f/ttt/v3/";
        String str2 = paramUser.gsid;
        arrayOfObject[1] = str2;
        arrayOfObject[2] = "10225010";
        arrayOfObject[3] = "9176_0001";
        arrayOfObject[4] = "meizu_m9";
        String str3 = String.format("%sdealmsg.php?gsid=%s&from=%s&wm=%s&c=%s", arrayOfObject);
        HttpPost localHttpPost = new HttpPost(str3);
        localHttpPost.setEntity(localUrlEncodedFormEntity);
        return parseResult(execute(localHttpPost));
      }
      catch (UnsupportedEncodingException localUnsupportedEncodingException)
      {
        String str4 = UNKNOWN_ERROR;
        throw new HttpException(localUnsupportedEncodingException);
      }
    }
    catch (ParseException localParseException)
    {
    }
    throw new HttpException();
  }

  public class ApiException extends Exception
  {
    private static final long serialVersionUID = 4851415466864471511L;

    public ApiException()
    {
    }

    public ApiException()
    {
      super();
    }

    public ApiException(Throwable arg2)
    {
      super(localThrowable);
    }

    public ApiException()
    {
      super();
    }
  }

  public class HttpException extends Exception
  {
    private static final long serialVersionUID = 5672654600892372211L;
    private int statusCode = -1;

    public HttpException()
    {
    }

    public HttpException()
    {
      this.statusCode = this$1;
    }

    public HttpException()
    {
      super();
    }

    public HttpException(Throwable arg2)
    {
      super(localThrowable);
    }

    public HttpException()
    {
      super();
    }

    public int getStatusCode()
    {
      return this.statusCode;
    }

    public void setStatusCode(int paramInt)
    {
      this.statusCode = paramInt;
    }
  }

  public class NoSignalException extends Exception
  {
    private static final long serialVersionUID = 4854482225687754615L;

    public NoSignalException()
    {
    }

    public NoSignalException()
    {
      super();
    }

    public NoSignalException(Throwable arg2)
    {
      super(localThrowable);
    }

    public NoSignalException()
    {
      super();
    }
  }

  public class ParseException extends Exception
  {
    private static final long serialVersionUID = 3132128578218204998L;

    public ParseException()
    {
    }

    public ParseException()
    {
      super();
    }

    public ParseException(Throwable arg2)
    {
      super(localThrowable);
    }

    public ParseException()
    {
      super();
    }
  }
}

/* Location:           D:\Program Files\eclipse\apktool-r01-3\新浪微博\classes.dex.dex2jar.jar
 * Qualified Name:     com.sina.weibo.RPCHelper
 * JD-Core Version:    0.6.0
 */